1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

check pointer before dereferencing it

(This used to be commit 786d91d75c909f6d407b8466c89181f26e62e68f)
This commit is contained in:
Gerald Carter 2003-02-07 16:20:58 +00:00
parent 6b703fc40a
commit 36657d41ce

View 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);
}