summaryrefslogtreecommitdiff
path: root/source3/libsmb/clifile.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-05 13:45:59 +0200
committerVolker Lendecke <vl@samba.org>2010-08-05 14:53:54 +0200
commit61fb8a4fd1a8b30fffdf941a9ff843825bf966e3 (patch)
tree50075c59f5f8baf5ced5d4dc45ba17d08293fe8f /source3/libsmb/clifile.c
parent1cbe8b85ae155896e8a4ef39f4b129b2f1e6b1d8 (diff)
downloadsamba-61fb8a4fd1a8b30fffdf941a9ff843825bf966e3.tar.gz
samba-61fb8a4fd1a8b30fffdf941a9ff843825bf966e3.tar.bz2
samba-61fb8a4fd1a8b30fffdf941a9ff843825bf966e3.zip
s3: Explicitly pass flags2 to clistr_pull_talloc
Required to eventually make cli_list async
Diffstat (limited to 'source3/libsmb/clifile.c')
-rw-r--r--source3/libsmb/clifile.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c
index 2067b79c52..48af0cc56d 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -5022,8 +5022,9 @@ static void cli_notify_done(struct tevent_req *subreq)
NTSTATUS status;
uint8_t *params;
uint32_t i, ofs, num_params;
+ uint16_t flags2;
- status = cli_trans_recv(subreq, talloc_tos(), NULL, NULL, 0, NULL,
+ status = cli_trans_recv(subreq, talloc_tos(), &flags2, NULL, 0, NULL,
&params, 0, &num_params, NULL, 0, NULL);
TALLOC_FREE(subreq);
if (!NT_STATUS_IS_OK(status)) {
@@ -5068,8 +5069,8 @@ static void cli_notify_done(struct tevent_req *subreq)
}
state->changes[i].action = IVAL(params, ofs+4);
- ret = clistr_pull_talloc(params, (char *)params, &name,
- params+ofs+12, len,
+ ret = clistr_pull_talloc(params, (char *)params, flags2,
+ &name, params+ofs+12, len,
STR_TERMINATE|STR_UNICODE);
if (ret == -1) {
TALLOC_FREE(params);