mirror of
https://github.com/samba-team/samba.git
synced 2025-02-21 01:59:07 +03:00
Set the right return value if wbc_status is set to an error.
This commit is contained in:
parent
2ee8d29d22
commit
95b13b313b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user