tldap talloc_realloc
authorStefan Metzmacher <metze@samba.org>
Wed, 4 Jan 2012 22:08:36 +0000 (23:08 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 May 2012 16:47:01 +0000 (18:47 +0200)
source3/lib/tldap.c

index 8b04d0063675e137c6fd2d25fba42bfd229f8081..d039f9548af8f83958694fc165a61509609011f7 100644 (file)
@@ -474,7 +474,7 @@ static void tldap_msg_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.
         */
-       ld->pending = talloc_realloc(NULL, ld->pending, struct tevent_req *,
+       ld->pending = talloc_realloc(ld, ld->pending, struct tevent_req *,
                                     num_pending - 1);
        return;
 }