summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-02-07 16:20:58 +0000
committerGerald Carter <jerry@samba.org>2003-02-07 16:20:58 +0000
commit36657d41ce80ab45483c1ffef2b01fdcbaf5fcca (patch)
treef21d65fd2be51ca850bac13782107ff1ad84af54
parent6b703fc40acec1bf99c2f437327d279ddcbb3006 (diff)
downloadsamba-36657d41ce80ab45483c1ffef2b01fdcbaf5fcca.tar.gz
samba-36657d41ce80ab45483c1ffef2b01fdcbaf5fcca.tar.bz2
samba-36657d41ce80ab45483c1ffef2b01fdcbaf5fcca.zip
check pointer before dereferencing it
(This used to be commit 786d91d75c909f6d407b8466c89181f26e62e68f)
-rw-r--r--source3/smbd/sesssetup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 679f040b2c..bb7d17be56 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -272,7 +272,7 @@ static BOOL reply_spnego_ntlmssp(connection_struct *conn, char *outbuf,
set_message(outbuf,4,0,True);
SSVAL(outbuf, smb_vwv3, 0);
- if ((*auth_ntlmssp_state)->server_info->guest) {
+ if ((*auth_ntlmssp_state)->server_info && (*auth_ntlmssp_state)->server_info->guest) {
SSVAL(outbuf,smb_vwv2,1);
}