1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

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 commit is contained in:
Andrew Tridgell 2005-01-21 23:53:10 +00:00 committed by Gerald (Jerry) Carter
parent bc901ecfb4
commit b20c0561b8

View File

@ -122,10 +122,10 @@ failed:
nbt_name_request_destructor(req); nbt_name_request_destructor(req);
req->status = status; req->status = status;
req->state = NBT_REQUEST_ERROR; req->state = NBT_REQUEST_ERROR;
talloc_free(tmp_ctx);
if (req->async.fn) { if (req->async.fn) {
req->async.fn(req); req->async.fn(req);
} }
talloc_free(tmp_ctx);
return; return;
} }