1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

nbt: don't reference the event_ctx in nbtsock

This causes talloc_free with references errors
This commit is contained in:
Andrew Tridgell 2010-02-07 21:08:56 +11:00
parent 7fed22eb0a
commit 6b01ca95a8

View File

@ -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);