linux/net/tls
Sabrina Dubroca cf6d43ef66 tls: fix sw_ctx leak
During setsockopt(SOL_TCP, TLS_TX), if initialization of the software
context fails in tls_set_sw_offload(), we leak sw_ctx. We also don't
reassign ctx->priv_ctx to NULL, so we can't even do another attempt to
set it up on the same socket, as it will fail with -EEXIST.

Fixes: 3c4d755915 ('tls: kernel TLS support')
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-01-17 16:16:03 -05:00
..
Kconfig tls: update Kconfig 2017-06-17 22:56:46 -04:00
Makefile tls: kernel TLS support 2017-06-15 12:12:40 -04:00
tls_main.c net/tls: Only attach to sockets in ESTABLISHED state 2018-01-17 16:05:28 -05:00
tls_sw.c tls: fix sw_ctx leak 2018-01-17 16:16:03 -05:00