From f95a0d88176a97353d1598b0d1f04cabd696fd59 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Tue, 9 Jan 2007 00:39:49 +0000 Subject: [PATCH] =?UTF-8?q?Merged=20Petteri=20R=C3=A4ty=20=20patches=20into=20the=20trunk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pam.c b/src/pam.c index 943ba40..9ce2dc1 100644 --- a/src/pam.c +++ b/src/pam.c @@ -69,7 +69,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags, if (pam_get_item(pamh, PAM_TTY, (const void **)&tty) == PAM_SUCCESS) { - if (!strcmp(tty, "ssh")) + if (tty && !strcmp(tty, "ssh")) { log_debug("SSH Authentication, aborting.\n"); return (0);