> if (ctxt_len < > sizeof(struct smb2_neg_context) + MIN_PREAUTH_CTXT_DATA_LEN) > You need to plus sizeof(struct smb2_neg_context) here. > MIN_PREAUTH_CTXT_DATA_LEN accounts for HashAlgorithmCount, > SaltLength, and 1 HashAlgorithm. > > > return STATUS_INVALID_PARAMETER; Sorry, should I resend the patch? Thanks