1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

Merge remote branch 'martins/ctdb_control_oom'

(This used to be ctdb commit 6a57c64c58c77fd9dc7c7a1583d402c3ce0313b1)
This commit is contained in:
Ronnie Sahlberg 2011-11-18 14:45:56 +11:00
commit 446b40ba2c

View File

@ -648,7 +648,10 @@ void ctdb_request_control_reply(struct ctdb_context *ctdb, struct ctdb_req_contr
len += strlen(errormsg);
}
r = ctdb_transport_allocate(ctdb, ctdb, CTDB_REPLY_CONTROL, len, struct ctdb_reply_control);
CTDB_NO_MEMORY_VOID(ctdb, r);
if (r == NULL) {
DEBUG(DEBUG_ERR,(__location__ "Unable to allocate transport - OOM or transport is down\n"));
return;
}
r->hdr.destnode = c->hdr.srcnode;
r->hdr.reqid = c->hdr.reqid;