libctdb: Make sure ctdb_request->ctdb is filled correctly
[ctdb.git] / libctdb / messages.c
index d5c450833d60a8f5a8de066ee070de832ed11e2b..b69428baf0e7ac6c727d09bfaf5250ac0c3f8c45 100644 (file)
@@ -216,8 +216,9 @@ bool ctdb_send_message(struct ctdb_connection *ctdb,
        struct ctdb_req_message *pkt;
 
        /* We just discard it once it's finished: no reply. */
-       req = new_ctdb_request(offsetof(struct ctdb_req_message, data) + data.dsize,
-                              ctdb_cancel_callback, NULL);
+       req = new_ctdb_request(
+               ctdb, offsetof(struct ctdb_req_message, data) + data.dsize,
+               ctdb_cancel_callback, NULL);
        if (!req) {
                DEBUG(ctdb, LOG_ERR, "ctdb_set_message: allocating message");
                return false;