From f6aba7fb555f9f689bd486c8e622603aebb6addd Mon Sep 17 00:00:00 2001 From: 34n0 <34n0@immerda.ch> Date: Mon, 29 Jan 2024 17:56:06 +0100 Subject: [PATCH] fix: return AUTH_ERR in bounce --- crates/lib/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/lib/src/lib.rs b/crates/lib/src/lib.rs index 62c5d8c..9df3425 100644 --- a/crates/lib/src/lib.rs +++ b/crates/lib/src/lib.rs @@ -265,6 +265,7 @@ fn bounce_auth(pamh: &mut PamHandle, settings: &Settings, tally: &Tally) -> PamR // Wait for one second sleep(std::time::Duration::from_secs(1)); // } + return PamResultCode::PAM_AUTH_ERR } } PamResultCode::PAM_SUCCESS