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 | 59afc3d6daad2770219dba1ca113869967eefc23 (patch) | |
tree | ddf78c602543219b9c133d7a68af1047cd7b8fcb /source | |
parent | dc1a72f896b83bc1ad3c7bf6c12c36ace3967280 (diff) | |
download | samba-59afc3d6daad2770219dba1ca113869967eefc23.tar.gz samba-59afc3d6daad2770219dba1ca113869967eefc23.tar.xz samba-59afc3d6daad2770219dba1ca113869967eefc23.zip |
See if we can get slightly valid C for the non-PAM case here.
Andrew Bartlett
Diffstat (limited to 'source')
-rw-r--r-- | source/lib/pam_errors.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/pam_errors.c b/source/lib/pam_errors.c index d7765c7c515..ef0e850904a 100644 --- a/source/lib/pam_errors.c +++ b/source/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 */ } |