diff options
author | Volker Lendecke <vl@samba.org> | 2010-02-20 15:17:29 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-02-22 23:23:19 +0100 |
commit | fdd82e69abfa05fe11523f5b158384cb82d3bc8b (patch) | |
tree | 418f93009b7c824064936794f680e762c7dc0bce /source3 | |
parent | 160c459b54c5e18c59a0c155c3b94896267715bb (diff) | |
download | samba-fdd82e69abfa05fe11523f5b158384cb82d3bc8b.tar.gz samba-fdd82e69abfa05fe11523f5b158384cb82d3bc8b.tar.bz2 samba-fdd82e69abfa05fe11523f5b158384cb82d3bc8b.zip |
s3: Explicitly handle inbuf in cli_negprot_done
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/cliconnect.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index ba09af4c06..256ca2e027 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -2033,11 +2033,12 @@ static void cli_negprot_done(struct tevent_req *subreq) uint8_t *bytes; NTSTATUS status; uint16_t protnum; + uint8_t *inbuf; - status = cli_smb_recv(subreq, NULL, NULL, 1, &wct, &vwv, + status = cli_smb_recv(subreq, state, &inbuf, 1, &wct, &vwv, &num_bytes, &bytes); + TALLOC_FREE(subreq); if (!NT_STATUS_IS_OK(status)) { - TALLOC_FREE(subreq); tevent_req_nterror(req, status); return; } |