Rev 77: fix a possible free after use in
http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Tue Apr 10 03:05:23 GMT 2007
------------------------------------------------------------
revno: 77
revision-id: tridge at samba.org-20070410030523-6999e1796946bdfe
parent: tridge at samba.org-20070410025154-12ddbf5dc4ff7bf6
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Tue 2007-04-10 13:05:23 +1000
message:
fix a possible free after use
modified:
common/ctdb_call.c ctdb_call.c-20061128065342-to93h6eejj5kon81-1
=== modified file 'common/ctdb_call.c'
--- a/common/ctdb_call.c 2007-04-07 00:58:14 +0000
+++ b/common/ctdb_call.c 2007-04-10 03:05:23 +0000
@@ -418,6 +418,10 @@
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;
}
More information about the samba-cvs
mailing list