diff options
Diffstat (limited to 'source4/lib/tls')
-rw-r--r-- | source4/lib/tls/tls.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/source4/lib/tls/tls.c b/source4/lib/tls/tls.c index 8a5ee89b87..b87bd2c307 100644 --- a/source4/lib/tls/tls.c +++ b/source4/lib/tls/tls.c @@ -482,15 +482,8 @@ struct socket_context *tls_init_server(struct tls_params *params, } tls->socket = socket_ctx; + talloc_steal(tls, socket_ctx); tls->fde = fde; - if (talloc_reference(tls, fde) == NULL) { - talloc_free(new_sock); - return NULL; - } - if (talloc_reference(tls, socket_ctx) == NULL) { - talloc_free(new_sock); - return NULL; - } new_sock->private_data = tls; |