summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-03-14 23:06:06 +0000
committerGerald Carter <jerry@samba.org>2003-03-14 23:06:06 +0000
commit128e7edaaf7cf6ed590c8b7260303520f7b773a0 (patch)
treed64e7c2ee7379a9b4315d058fd5c3d575ce3f289 /source3/lib
parenta3d7a1ea200a84aea77b67f9ed1cb6c4ae48442f (diff)
downloadsamba-128e7edaaf7cf6ed590c8b7260303520f7b773a0.tar.gz
samba-128e7edaaf7cf6ed590c8b7260303520f7b773a0.tar.bz2
samba-128e7edaaf7cf6ed590c8b7260303520f7b773a0.zip
fix WinXP & Win2K3 remote_arch and check pointer in ntlmssp code before dereferencing
(This used to be commit 7bc5fc729f67ae16e09ea67efa9e2b8e2ba41c8f)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 8d62db5ebb..77ffa70a47 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1741,6 +1741,22 @@ BOOL is_myworkgroup(const char *s)
}
/*******************************************************************
+ we distinguish between 2K and XP by the "Native Lan Manager" string
+ WinXP => "Windows 2002 5.1"
+ Win2k => "Windows 2000 5.0"
+ NT4 => "Windows NT 4.0"
+ Win9x => "Windows 4.0"
+********************************************************************/
+
+void ra_lanman_string( const char *native_lanman )
+{
+ if ( 0 == strcmp( native_lanman, "Windows 2002 5.1" ) )
+ set_remote_arch( RA_WINXP );
+ else if ( 0 == strcmp( native_lanman, "Windows .NET 5.2" ) )
+ set_remote_arch( RA_WIN2K3 );
+}
+
+/*******************************************************************
Set the horrid remote_arch string based on an enum.
********************************************************************/