diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-02-05 21:05:04 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-02-05 21:05:04 +0000 |
commit | db0d2f8d6038f9d20429f2137986dc65d50137af (patch) | |
tree | b43e2b0005aeed7dff8f62e98d60975de5923263 /source3 | |
parent | ed389ee8dc9246b2d6c4e483cee16f7255b9a7f5 (diff) | |
download | samba-db0d2f8d6038f9d20429f2137986dc65d50137af.tar.gz samba-db0d2f8d6038f9d20429f2137986dc65d50137af.tar.bz2 samba-db0d2f8d6038f9d20429f2137986dc65d50137af.zip |
See if we can get slightly valid C for the non-PAM case here.
Andrew Bartlett
(This used to be commit 59afc3d6daad2770219dba1ca113869967eefc23)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/pam_errors.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ } |