git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
160c459
)
s3: Explicitly handle inbuf in cli_negprot_done
author
Volker Lendecke
<vl@samba.org>
Sat, 20 Feb 2010 14:17:29 +0000
(15:17 +0100)
committer
Volker Lendecke
<vl@samba.org>
Mon, 22 Feb 2010 22:23:19 +0000
(23:23 +0100)
source3/libsmb/cliconnect.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/cliconnect.c
b/source3/libsmb/cliconnect.c
index ba09af4c06e26e32d9e077530ce33613b3aa1a7f..256ca2e02771ed26b57484084f02e423f915a5a2 100644
(file)
--- 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;
}