summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-09 22:43:28 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-10 00:34:50 +0200
commit258ffddf1cc1ac6b1ff5a07585940ca552170807 (patch)
tree553c36a42d801e1ca373c1cc509bdf15440f328d
parent47130f97fd371de2541be1a7216dd1ae907bfde2 (diff)
downloadsamba-258ffddf1cc1ac6b1ff5a07585940ca552170807.tar.gz
samba-258ffddf1cc1ac6b1ff5a07585940ca552170807.tar.bz2
samba-258ffddf1cc1ac6b1ff5a07585940ca552170807.zip
libcli/smb: s/FLAGS2_UNKNOWN_BIT4/FLAGS2_SMB_SECURITY_SIGNATURES_REQUIRED
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Sep 10 00:34:50 CEST 2011 on sn-devel-104
-rw-r--r--libcli/smb/smb_constants.h2
-rw-r--r--source3/smbd/negprot.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libcli/smb/smb_constants.h b/libcli/smb/smb_constants.h
index 11b1394264..c5d07ae1ac 100644
--- a/libcli/smb/smb_constants.h
+++ b/libcli/smb/smb_constants.h
@@ -49,7 +49,7 @@ enum protocol_types {
#define FLAGS2_LONG_PATH_COMPONENTS 0x0001
#define FLAGS2_EXTENDED_ATTRIBUTES 0x0002
#define FLAGS2_SMB_SECURITY_SIGNATURES 0x0004
-#define FLAGS2_UNKNOWN_BIT4 0x0010
+#define FLAGS2_SMB_SECURITY_SIGNATURES_REQUIRED 0x0010
#define FLAGS2_IS_LONG_NAME 0x0040
#define FLAGS2_EXTENDED_SECURITY 0x0800
#define FLAGS2_DFS_PATHNAMES 0x1000
diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c
index a38534f323..71e0291c77 100644
--- a/source3/smbd/negprot.c
+++ b/source3/smbd/negprot.c
@@ -315,7 +315,7 @@ static void reply_nt1(struct smb_request *req, uint16 choice)
distinguish from NT which doesn't set it either. */
if ( (req->flags2 & FLAGS2_EXTENDED_SECURITY) &&
- ((req->flags2 & FLAGS2_UNKNOWN_BIT4) == 0) )
+ ((req->flags2 & FLAGS2_SMB_SECURITY_SIGNATURES_REQUIRED) == 0) )
{
if (get_remote_arch() != RA_SAMBA) {
set_remote_arch( RA_VISTA );