diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-07 21:08:56 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-02-08 11:04:59 +1100 |
commit | 6b01ca95a8e2858f43726eacd59f1fab5da63865 (patch) | |
tree | 64400e061f93bd02e134aeea85bc8b4b1005c0b3 /libcli | |
parent | 7fed22eb0aa108e245a24f77a08c626f3a92ad48 (diff) | |
download | samba-6b01ca95a8e2858f43726eacd59f1fab5da63865.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/nbt/nbtsocket.c b/libcli/nbt/nbtsocket.c index a3e295d3df0..d9bc72e4998 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); |