From b577f90eabd05c6acb731b69fccc86799d87faf3 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Tue, 8 May 2007 00:52:04 +0000 Subject: [PATCH] Security fix --- pam_usb/src/pam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pam_usb/src/pam.c b/pam_usb/src/pam.c index 539f38c..534d0a9 100644 --- a/pam_usb/src/pam.c +++ b/pam_usb/src/pam.c @@ -72,7 +72,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags, if (tty && !strcmp(tty, "ssh")) { log_debug("SSH Authentication, aborting.\n"); - return (0); + return (PAM_AUTH_ERR); } } if (!pusb_local_login(&opts, user))