rc = ctdb_ibw_send_pkt(cn->conn, data, length);
} else {
struct ctdb_ibw_msg *p = talloc_zero(cn, struct ctdb_ibw_msg);
+ if (p == NULL) {
+ DEBUG(DEBUG_ERR, ("talloc_zero failed.\n"));
+ return -1;
+ }
p->data = talloc_memdup(p, data, length);
+ if (p->data == NULL) {
+ DEBUG(DEBUG_ERR, ("talloc_memdup failed.\n"));
+ return -1;
+ }
p->length = length;
DLIST_ADD_AFTER(cn->queue, p, cn->queue_last);