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

r22792: only don't free on success

metze
This commit is contained in:
Stefan Metzmacher 2007-05-11 10:13:10 +00:00 committed by Gerald (Jerry) Carter
parent c08eeb62ca
commit 2259bc2cad

View File

@ -1012,11 +1012,14 @@ static void r_do_challenge_handler(struct irpc_request *ireq)
}
if (!old_is_subset) {
r_do_late_release_demand(state);
status = r_do_late_release_demand(state);
/*
* don't free state here, because we pass it down,
* only free state on error, because we pass it down,
* and r_do_late_release_demand() will free it
*/
if (!NT_STATUS_IS_OK(status)) {
talloc_free(state);
}
return;
}