mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
s4-ntlm: Fix a NULL pointer dereference in error path
Found by clang compiler. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jun 22 23:21:33 CEST 2016 on sn-devel-144
This commit is contained in:
parent
f01f424853
commit
a737efe2bd
@ -216,9 +216,11 @@ static NTSTATUS winbind_check_password_wbclient(struct auth_method_context *ctx,
|
||||
if (err) {
|
||||
DEBUG(1, ("error was %s (0x%08x)\nerror message was '%s'\n",
|
||||
err->nt_string, err->nt_status, err->display_string));
|
||||
nt_status = NT_STATUS(err->nt_status);
|
||||
wbcFreeMemory(err);
|
||||
} else {
|
||||
nt_status = NT_STATUS_LOGON_FAILURE;
|
||||
}
|
||||
nt_status = NT_STATUS(err->nt_status);
|
||||
wbcFreeMemory(err);
|
||||
NT_STATUS_NOT_OK_RETURN(nt_status);
|
||||
} else if (!WBC_ERROR_IS_OK(wbc_status)) {
|
||||
DEBUG(1, ("wbcAuthenticateUserEx: failed with %u - %s\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user