Browse Source

Merged Petteri Räty <betelgeuse@gentoo.org> patches into the trunk

Andrea Luzzardi 18 years ago
parent
commit
f95a0d8817
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/pam.c

+ 1
- 1
src/pam.c View File

@ -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 (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"); log_debug("SSH Authentication, aborting.\n");
return (0); return (0);


Loading…
Cancel
Save