diff options
Diffstat (limited to 'source3/smbd/sesssetup.c')
-rw-r--r-- | source3/smbd/sesssetup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index 8b133b4a54..6dc8609071 100644 --- a/source3/smbd/sesssetup.c +++ b/source3/smbd/sesssetup.c @@ -1140,7 +1140,7 @@ static void reply_sesssetup_and_X_spnego(struct smb_request *req) * identical regardless. In particular, both rely only on the * status code (not the contents of the packet) and do not * wrap the result */ - if (sconn->use_gensec_hook || (blob1.length > 7 && strncmp((char *)(blob1.data), "NTLMSSP", 7) == 0)) { + if (sconn->use_gensec_hook || ntlmssp_blob_matches_magic(&blob1)) { DATA_BLOB chal; if (!vuser->auth_ntlmssp_state) { |