ctdb-client: Add missing initialization of tevent_context
authorAmitay Isaacs <amitay@gmail.com>
Mon, 19 Mar 2018 02:58:43 +0000 (13:58 +1100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 6 Apr 2018 06:21:13 +0000 (08:21 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13356

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
(cherry picked from commit 4e37be92bfb790150b3791bef552aa4acf8f78b7)

ctdb/client/client_db.c

index a0c4cfed652502b784403fdd3debd53c9ce6937b..c0ecdeb2d307dc57b2be5ca29e71e1421b6215fb 100644 (file)
@@ -1191,6 +1191,7 @@ struct tevent_req *ctdb_fetch_lock_send(TALLOC_CTX *mem_ctx,
        if (tevent_req_nomem(state->h, req)) {
                return tevent_req_post(req, ev);
        }
+       state->h->ev = ev;
        state->h->client = client;
        state->h->db = db;
        state->h->key.dptr = talloc_memdup(state->h, key.dptr, key.dsize);