mirror of
https://github.com/samba-team/samba.git
synced 2025-01-01 21:18:10 +03:00
check pointer before dereferencing it
This commit is contained in:
parent
e8f751fe84
commit
786d91d75c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user