From db0d2f8d6038f9d20429f2137986dc65d50137af Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 5 Feb 2002 21:05:04 +0000 Subject: See if we can get slightly valid C for the non-PAM case here. Andrew Bartlett (This used to be commit 59afc3d6daad2770219dba1ca113869967eefc23) --- source3/lib/pam_errors.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib/pam_errors.c') diff --git a/source3/lib/pam_errors.c b/source3/lib/pam_errors.c index d7765c7c51..ef0e850904 100644 --- a/source3/lib/pam_errors.c +++ b/source3/lib/pam_errors.c @@ -105,7 +105,7 @@ convert a PAM error to a NT status32 code *****************************************************************************/ NTSTATUS pam_to_ntstatus(int pam_error) { - if (pam_errno == 0) return NT_STATUS_OK; + if (pam_error == 0) return NT_STATUS_OK; return NT_STATUS_UNSUCCESSFUL; } @@ -114,7 +114,7 @@ convert an NT status32 code to a PAM error *****************************************************************************/ int ntstatus_to_pam(NTSTATUS nt_status) { - if (nt_status == NT_STATUS_OK) return 0; + if (NT_STATUS_EQUAL(nt_status, NT_STATUS_OK)) return 0; return 4; /* PAM_SYSTEM_ERR */ } -- cgit