mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
fix a possible free after use
(This used to be ctdb commit 55bc7ee10b9e9df32792b6b5779f094eb513069e)
This commit is contained in:
parent
9f7ae0f891
commit
9958ded5eb
@ -418,6 +418,10 @@ void ctdb_reply_call(struct ctdb_context *ctdb, struct ctdb_req_header *hdr)
|
||||
|
||||
talloc_steal(state, c);
|
||||
|
||||
/* get an extra reference here - this prevents the free in ctdb_recv_pkt()
|
||||
from freeing the data */
|
||||
(void)talloc_reference(state, c);
|
||||
|
||||
state->state = CTDB_CALL_DONE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user