+10
−44
Loading
According to openssl documentation, If necessary, a read/write function will negotiate a TLS/SSL session. This will allow us to address #3077 And remove blocking code when establishing SSL conections. SSL_set_app_data() sets a pointer for ssl object for additional application data. Up till now impl_opts structures were being allocated in posix_sock_create() and then passed to ssl_sock_connect_loop() for a handshake. Now, when SSL_connect() is removed, the handshake happens after execution returns from posix_sock_create(), so the memory is already discarded. Setting the pointer in the right place now avoids accessing freed memory. Fixes #3077 Change-Id: I8389b34b5e61573dafb946419f922603d8d79b1d Signed-off-by:Boris Glimcher <Boris.Glimcher@emc.com> Signed-off-by:
Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19241 Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>