From: Volker Lendecke Date: Mon, 6 Mar 2017 20:36:25 +0000 (+0000) Subject: winbind_pam: Use any_nt_status_not_ok in map_auth_samlogon X-Git-Tag: tdb-1.3.13~128 X-Git-Url: http://git.samba.org/samba.git/?p=garming%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=5ee6d44665d6a8bee2d50d241422f9b4ecd69ff2 winbind_pam: Use any_nt_status_not_ok in map_auth_samlogon Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c index 292f556e25b..718acd70f4e 100644 --- a/source3/winbindd/winbindd_pam.c +++ b/source3/winbindd/winbindd_pam.c @@ -1695,18 +1695,13 @@ static NTSTATUS winbindd_dual_pam_auth_samlogon(TALLOC_CTX *mem_ctx, &info, &result_tmp); - if (!NT_STATUS_IS_OK(status_tmp)) { + if (any_nt_status_not_ok(status_tmp, result_tmp, + &status_tmp)) { DEBUG(3, ("could not query user info on SAMR pipe: %s\n", nt_errstr(status_tmp))); dcerpc_samr_Close(b, mem_ctx, &user_pol, &result_tmp); goto done; } - if (!NT_STATUS_IS_OK(result_tmp)) { - DEBUG(3, ("could not query user info on SAMR pipe: %s\n", - nt_errstr(result_tmp))); - dcerpc_samr_Close(b, mem_ctx, &user_pol, &result_tmp); - goto done; - } acct_flags = info->info16.acct_flags;