s3:libsmb: fix the talloc parent of clistr_pull_talloc() in cli_notify_done()
authorStefan Metzmacher <metze@samba.org>
Mon, 4 Jun 2012 16:30:11 +0000 (18:30 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 5 Jun 2012 15:33:49 +0000 (17:33 +0200)
metze

source3/libsmb/clifile.c

index 8fdbe15edc199e004f2740528583ff32d6b1f699..1ee7fff8b592377e56c4ef7fd063175d6ca9b6a0 100644 (file)
@@ -5039,7 +5039,7 @@ static void cli_notify_done(struct tevent_req *subreq)
                }
 
                state->changes[i].action = IVAL(params, ofs+4);
-               ret = clistr_pull_talloc(params, (char *)params, flags2,
+               ret = clistr_pull_talloc(state->changes, (char *)params, flags2,
                                         &name, params+ofs+12, len,
                                         STR_TERMINATE|STR_UNICODE);
                if (ret == -1) {