diff --git a/src/auth/auth-request.c b/src/auth/auth-request.c index d4b74b0888..217a0ce3e5 100644 --- a/src/auth/auth-request.c +++ b/src/auth/auth-request.c @@ -1042,7 +1042,7 @@ void auth_request_policy_check_callback(int result, void *context) else auth_request_log_debug(ctx->request, "policy", "Policy check action is %s", action); - if (result == -1) { + if (result < 0) { /* fail it right here and now */ auth_request_fail(ctx->request); } else if (ctx->type != AUTH_POLICY_CHECK_TYPE_SUCCESS && result > 0 && !ctx->request->no_penalty) {