From: Sabrina Dubroca <[email protected]>
Date: Tue, 16 Jan 2018 16:04:26 +0100

> 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: 3c4d7559159b ('tls: kernel TLS support')
> Signed-off-by: Sabrina Dubroca <[email protected]>

Applied.

Reply via email to