git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37dcbe1
)
libcli: Fix CID 710748 Resource leak
author
Volker Lendecke
<vl@samba.org>
Fri, 30 Mar 2018 18:10:14 +0000
(13:10 -0500)
committer
Jeremy Allison
<jra@samba.org>
Tue, 3 Apr 2018 22:44:22 +0000
(
00:44
+0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
libcli/smb/smbXcli_base.c
patch
|
blob
|
history
diff --git
a/libcli/smb/smbXcli_base.c
b/libcli/smb/smbXcli_base.c
index fbf24416093e6cf0b6ca2299d6dbd7701f6065f7..ad1b67b8476e62ff758ae4d481872876243193e3 100644
(file)
--- a/
libcli/smb/smbXcli_base.c
+++ b/
libcli/smb/smbXcli_base.c
@@
-2105,10
+2105,10
@@
static NTSTATUS smb1cli_inbuf_parse_chain(uint8_t *buf, TALLOC_CTX *mem_ctx,
wct_ofs = SVAL(cur[0].iov_base, 2);
if (wct_ofs < taken) {
-
return NT_STATUS_INVALID_NETWORK_RESPONSE
;
+
goto inval
;
}
if (wct_ofs > buflen) {
-
return NT_STATUS_INVALID_NETWORK_RESPONSE
;
+
goto inval
;
}
/*