svn commit: samba r20944 - in branches/SAMBA_4_0/source/cluster/ctdb/common: .

tridge at samba.org tridge at samba.org
Mon Jan 22 04:04:36 GMT 2007


Author: tridge
Date: 2007-01-22 04:04:36 +0000 (Mon, 22 Jan 2007)
New Revision: 20944

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20944

Log:

if a call has been destroyed before a reply comes in then discard the
reply

Modified:
   branches/SAMBA_4_0/source/cluster/ctdb/common/ctdb_call.c


Changeset:
Modified: branches/SAMBA_4_0/source/cluster/ctdb/common/ctdb_call.c
===================================================================
--- branches/SAMBA_4_0/source/cluster/ctdb/common/ctdb_call.c	2007-01-22 03:33:12 UTC (rev 20943)
+++ branches/SAMBA_4_0/source/cluster/ctdb/common/ctdb_call.c	2007-01-22 04:04:36 UTC (rev 20944)
@@ -390,6 +390,7 @@
 	TDB_DATA reply_data;
 
 	state = idr_find(ctdb->idr, hdr->reqid);
+	if (state == NULL) return;
 
 	reply_data.dptr = c->data;
 	reply_data.dsize = c->datalen;
@@ -415,6 +416,7 @@
 	TDB_DATA data;
 
 	state = idr_find(ctdb->idr, hdr->reqid);
+	if (state == NULL) return;
 
 	data.dptr = c->data;
 	data.dsize = c->datalen;
@@ -450,6 +452,7 @@
 	struct ctdb_call_state *state;
 
 	state = idr_find(ctdb->idr, hdr->reqid);
+	if (state == NULL) return;
 
 	talloc_steal(state, c);
 
@@ -471,6 +474,7 @@
 	struct ctdb_call_state *state;
 
 	state = idr_find(ctdb->idr, hdr->reqid);
+	if (state == NULL) return;
 
 	talloc_steal(state, c);
 	



More information about the samba-cvs mailing list