check pointer before dereferencing it
authorGerald Carter <jerry@samba.org>
Fri, 7 Feb 2003 16:20:58 +0000 (16:20 +0000)
committerGerald Carter <jerry@samba.org>
Fri, 7 Feb 2003 16:20:58 +0000 (16:20 +0000)
source/smbd/sesssetup.c

index 679f040b2cb5d9f07d9b97a9ffb7baf724088bcc..bb7d17be56f4a190e143f063c1cabe6b1f5f9435 100644 (file)
@@ -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);
                        }