diff options
author | Andreas Schneider <anschneider@suse.de> | 2008-10-20 14:51:00 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-10-21 15:26:39 +0200 |
commit | 95b13b313bb35e97e4318e229ab7773c0218abae (patch) | |
tree | 86e92c7477fe1cd95b9710a07dae22d4dfe32f09 /source3/nsswitch | |
parent | 2ee8d29d22bcb1c350ab59d71b0aee548489bc9c (diff) | |
download | samba-95b13b313bb35e97e4318e229ab7773c0218abae.tar.gz samba-95b13b313bb35e97e4318e229ab7773c0218abae.tar.bz2 samba-95b13b313bb35e97e4318e229ab7773c0218abae.zip |
Set the right return value if wbc_status is set to an error.
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/pam_winbind.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c index 8d8868d0ef..4cfd9001d6 100644 --- a/source3/nsswitch/pam_winbind.c +++ b/source3/nsswitch/pam_winbind.c @@ -2735,6 +2735,11 @@ out: wbcFreeMemory(logoff.blobs); } + if (!WBC_ERROR_IS_OK(wbc_status)) { + retval = wbc_auth_error_to_pam_error(ctx, error, wbc_status, + user, "wbcLogoffUser"); + } + _PAM_LOG_FUNCTION_LEAVE("pam_sm_close_session", ctx, retval); TALLOC_FREE(ctx); |