smbXcli_base talloc_realloc
authorStefan Metzmacher <metze@samba.org>
Wed, 4 Jan 2012 22:08:07 +0000 (23:08 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 May 2012 16:47:00 +0000 (18:47 +0200)
libcli/smb/smbXcli_base.c

index eb9e7d55cfe59891b8d6112e4af738fda57a6ccd..fe85b3168054e29c1dcd19d476b2613799bac802 100644 (file)
@@ -731,7 +731,7 @@ void smbXcli_req_unset_pending(struct tevent_req *req)
         * No NULL check here, we're shrinking by sizeof(void *), and
         * talloc_realloc just adjusts the size for this.
         */
-       conn->pending = talloc_realloc(NULL, conn->pending, struct tevent_req *,
+       conn->pending = talloc_realloc(conn, conn->pending, struct tevent_req *,
                                       num_pending - 1);
        return;
 }