From 95b13b313bb35e97e4318e229ab7773c0218abae Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 20 Oct 2008 14:51:00 +0200 Subject: Set the right return value if wbc_status is set to an error. --- source3/nsswitch/pam_winbind.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3') 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); -- cgit