summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-07-30 08:40:29 +0200
committerStefan Metzmacher <metze@samba.org>2009-07-31 14:42:03 +0200
commitd866497b187f4c9c4fd7771b85ca1441b694af09 (patch)
treedf02bf50b8f5895ef5b10b4e5985e442b339d751 /source4/lib
parentff37d6631c40a61e596ce93a6803c65e1efe98c1 (diff)
downloadsamba-d866497b187f4c9c4fd7771b85ca1441b694af09.tar.gz
samba-d866497b187f4c9c4fd7771b85ca1441b694af09.tar.bz2
samba-d866497b187f4c9c4fd7771b85ca1441b694af09.zip
s4:tls: avoid using talloc_reference() in tls_init_server()
metze
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/tls/tls.c9
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;