summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-02-07 16:20:42 +0000
committerGerald Carter <jerry@samba.org>2003-02-07 16:20:42 +0000
commit67acaa00264e40f92dc06855a913138df676abe5 (patch)
tree00b7a78a23e97f407ef8ae047aca18bc5c6b7d5c /source3/smbd
parent13f65125ac8bcbb3b3367ec6feab504272fb388f (diff)
downloadsamba-67acaa00264e40f92dc06855a913138df676abe5.tar.gz
samba-67acaa00264e40f92dc06855a913138df676abe5.tar.bz2
samba-67acaa00264e40f92dc06855a913138df676abe5.zip
check pointer before dereferencing it
(This used to be commit 8712bd1f8eb5321278e7c57bfdc7bdddbdaf1424)
Diffstat (limited to 'source3/smbd')
-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);
}