[SCM] Samba Shared Repository - branch v4-0-test updated -
release-4-0-0alpha2-769-g252bcf2
Andrew Tridgell
tridge at samba.org
Tue Feb 12 09:29:51 GMT 2008
The branch, v4-0-test has been updated
via 252bcf207b8117f325075cbb7bd05063756ac283 (commit)
from d2c6ad55eca27f50a38fc6e2a85032eddb3f0aae (commit)
http://gitweb.samba.org/?samba.git;a=shortlog;h=v4-0-test
- Log -----------------------------------------------------------------
commit 252bcf207b8117f325075cbb7bd05063756ac283
Author: Andrew Tridgell <tridge at samba.org>
Date: Tue Feb 12 20:29:31 2008 +1100
fixed crash when 0 dialects (thanks metze!)
-----------------------------------------------------------------------
Summary of changes:
source/smb_server/smb2/negprot.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/smb_server/smb2/negprot.c b/source/smb_server/smb2/negprot.c
index 4f44147..7c295c0 100644
--- a/source/smb_server/smb2/negprot.c
+++ b/source/smb_server/smb2/negprot.c
@@ -94,8 +94,10 @@ static NTSTATUS smb2srv_negprot_backend(struct smb2srv_request *req, struct smb2
struct timeval boot_time;
/* we only do dialect 0 for now */
- if (io->in.dialect_count < 1 ||
- io->in.dialects[0] != 0) {
+ if (io->in.dialect_count < 1) {
+ return NT_STATUS_NOT_SUPPORTED;
+ }
+ if (io->in.dialects[0] != 0) {
DEBUG(0,("Got unexpected SMB2 dialect %u\n", io->in.dialects[0]));
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list