git.samba.org
/
libsmb2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16193cc
)
negotiate protocol: some servers do not return a blob in neg prot responses
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Mon, 28 Oct 2019 04:00:56 +0000
(14:00 +1000)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Mon, 28 Oct 2019 04:00:56 +0000
(14:00 +1000)
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
lib/smb2-cmd-negotiate.c
patch
|
blob
|
history
diff --git
a/lib/smb2-cmd-negotiate.c
b/lib/smb2-cmd-negotiate.c
index 03d9b5db252c22f352483ee541b73b2f7349bca0..c2299ee58c54b21a81ca4a9c82728013d0e5e3c3 100644
(file)
--- a/
lib/smb2-cmd-negotiate.c
+++ b/
lib/smb2-cmd-negotiate.c
@@
-146,9
+146,7
@@
smb2_process_negotiate_fixed(struct smb2_context *smb2,
smb2_get_uint16(iov, 58, &rep->security_buffer_length);
if (rep->security_buffer_length == 0) {
- smb2_set_error(smb2, "No security buffer in Negotiate "
- "Protocol response");
- return -1;
+ return 0;
}
if (rep->security_buffer_offset < SMB2_HEADER_SIZE +
(SMB2_NEGOTIATE_REPLY_SIZE & 0xfffe)) {