1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

source3 smdb: fix null pointer dereference

Fix the null pointer dereference in smbd, introduced in the auth logging
changes.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Apr 28 07:18:54 CEST 2017 on sn-devel-144
This commit is contained in:
Gary Lockyer 2017-04-27 12:39:34 +12:00 committed by Jeremy Allison
parent 85e98d2a31
commit aa43d0d81b
2 changed files with 1 additions and 3 deletions

View File

@ -329,5 +329,3 @@
# We currently don't send referrals for LDAP modify of non-replicated attrs
^samba4.ldap.rodc.python\(rodc\).__main__.RodcTests.test_modify_nonreplicated.*
^samba4.ldap.rodc_rwdc.python.*.__main__.RodcRwdcTests.test_change_password_reveal_on_demand_kerberos
# Test to detect null pointer issue in sessetup.c
^samba.tests.net_join_no_spnego.*

View File

@ -908,9 +908,9 @@ void reply_sesssetup_and_X(struct smb_request *req)
sconn->local_address,
"SMB",
lm_resp, nt_resp);
user_info->auth_description = "bare-NTLM";
if (NT_STATUS_IS_OK(nt_status)) {
user_info->auth_description = "bare-NTLM";
nt_status = auth_check_password_session_info(negprot_auth_context,
req, user_info, &session_info);
}