summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-07 21:08:56 +1100
committerAndrew Tridgell <tridge@samba.org>2010-02-08 11:04:59 +1100
commit6b01ca95a8e2858f43726eacd59f1fab5da63865 (patch)
tree64400e061f93bd02e134aeea85bc8b4b1005c0b3 /libcli
parent7fed22eb0aa108e245a24f77a08c626f3a92ad48 (diff)
downloadsamba-6b01ca95a8e2858f43726eacd59f1fab5da63865.tar.gz
samba-6b01ca95a8e2858f43726eacd59f1fab5da63865.tar.bz2
samba-6b01ca95a8e2858f43726eacd59f1fab5da63865.zip
nbt: don't reference the event_ctx in nbtsock
This causes talloc_free with references errors
Diffstat (limited to 'libcli')
-rw-r--r--libcli/nbt/nbtsocket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/nbt/nbtsocket.c b/libcli/nbt/nbtsocket.c
index a3e295d3df..d9bc72e499 100644
--- a/libcli/nbt/nbtsocket.c
+++ b/libcli/nbt/nbtsocket.c
@@ -341,7 +341,7 @@ _PUBLIC_ struct nbt_name_socket *nbt_name_socket_init(TALLOC_CTX *mem_ctx,
nbtsock = talloc(mem_ctx, struct nbt_name_socket);
if (nbtsock == NULL) goto failed;
- nbtsock->event_ctx = talloc_reference(nbtsock, event_ctx);
+ nbtsock->event_ctx = event_ctx;
if (nbtsock->event_ctx == NULL) goto failed;
status = socket_create("ip", SOCKET_TYPE_DGRAM, &nbtsock->sock, 0);