diff --git a/PAM/ssh/include/rublon/error_handler.hpp b/PAM/ssh/include/rublon/error_handler.hpp index 132e9d5..0894183 100644 --- a/PAM/ssh/include/rublon/error_handler.hpp +++ b/PAM/ssh/include/rublon/error_handler.hpp @@ -44,7 +44,7 @@ class ErrorHandler { } if(error.is< ConnectionError >()) { - if(config.failMode == FailMode::deny) { + if(config.failMode != FailMode::deny) { pam.print("Incorrect response from the Rublon API, user bypassed"); return AuthenticationStatus::Action::Bypass; } else {