mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r20944: if a call has been destroyed before a reply comes in then discard the
reply
(This used to be commit 05d19af38c
)
This commit is contained in:
parent
4109edc5b6
commit
e04e99585c
@ -390,6 +390,7 @@ void ctdb_reply_call(struct ctdb_context *ctdb, struct ctdb_req_header *hdr)
|
||||
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 @@ void ctdb_reply_dmaster(struct ctdb_context *ctdb, struct ctdb_req_header *hdr)
|
||||
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 @@ void ctdb_reply_error(struct ctdb_context *ctdb, struct ctdb_req_header *hdr)
|
||||
struct ctdb_call_state *state;
|
||||
|
||||
state = idr_find(ctdb->idr, hdr->reqid);
|
||||
if (state == NULL) return;
|
||||
|
||||
talloc_steal(state, c);
|
||||
|
||||
@ -471,6 +474,7 @@ void ctdb_reply_redirect(struct ctdb_context *ctdb, struct ctdb_req_header *hdr)
|
||||
struct ctdb_call_state *state;
|
||||
|
||||
state = idr_find(ctdb->idr, hdr->reqid);
|
||||
if (state == NULL) return;
|
||||
|
||||
talloc_steal(state, c);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user