s3-mdssvc: add missing call to g_cancellable_new()
authorRalph Boehme <slow@samba.org>
Tue, 12 Mar 2019 14:27:25 +0000 (15:27 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 24 Apr 2019 18:32:15 +0000 (18:32 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/rpc_server/mdssvc/mdssvc.c

index e297333ad160e6bf08cd5602c56fbb741ccfcb5a..693675fff6ff64dddaeedb028bfdb0d7a682fddc 100644 (file)
@@ -1903,6 +1903,12 @@ struct mds_ctx *mds_init_ctx(TALLOC_CTX *mem_ctx,
                goto error;
        }
 
+       mds_ctx->gcancellable = g_cancellable_new();
+       if (mds_ctx->gcancellable == NULL) {
+               DBG_ERR("error from g_cancellable_new\n");
+               goto error;
+       }
+
        tracker_sparql_connection_get_async(mds_ctx->gcancellable,
                                            tracker_con_cb, mds_ctx);