summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-21 23:53:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:05 -0500
commit79ef4f216bbf26db69560acffa8d075ac704d654 (patch)
treee0613bf14a7edb9557720d4773ed51b6973d546c /source4
parent9bfd19667a054d1b9ef8b420b1e6ea596ad3a258 (diff)
downloadsamba-79ef4f216bbf26db69560acffa8d075ac704d654.tar.gz
samba-79ef4f216bbf26db69560acffa8d075ac704d654.tar.bz2
samba-79ef4f216bbf26db69560acffa8d075ac704d654.zip
r4915: free temp context _before_ the async callback, as the async callback might destroy our top level context
leaving the tmp context freed (so a double free) (This used to be commit b20c0561b8ec3ec7010f846be7a39165783e15c2)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/nbt/nbtsocket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/nbt/nbtsocket.c b/source4/libcli/nbt/nbtsocket.c
index b0248b6de0..664e6fdce0 100644
--- a/source4/libcli/nbt/nbtsocket.c
+++ b/source4/libcli/nbt/nbtsocket.c
@@ -122,10 +122,10 @@ failed:
nbt_name_request_destructor(req);
req->status = status;
req->state = NBT_REQUEST_ERROR;
+ talloc_free(tmp_ctx);
if (req->async.fn) {
req->async.fn(req);
}
- talloc_free(tmp_ctx);
return;
}