diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2014-09-15 11:32:08 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2014-09-15 11:32:08 +0000 |
| commit | 4c1d902bb2b8ae197363a1425000de278bb8c38f (patch) | |
| tree | f982540b574c85adb21651754d4e907f79f711df /lib/libpam/modules | |
| parent | 796549695879e36c5391aeec0ffd72687ec7b2e5 (diff) | |
Notes
Diffstat (limited to 'lib/libpam/modules')
| -rw-r--r-- | lib/libpam/modules/pam_login_access/pam_login_access.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpam/modules/pam_login_access/pam_login_access.c b/lib/libpam/modules/pam_login_access/pam_login_access.c index c0a4e734a00da..a29eb7dc3862e 100644 --- a/lib/libpam/modules/pam_login_access/pam_login_access.c +++ b/lib/libpam/modules/pam_login_access/pam_login_access.c @@ -86,7 +86,7 @@ pam_sm_acct_mgmt(pam_handle_t *pamh, int flags __unused, return (PAM_SUCCESS); PAM_VERBOSE_ERROR("%s is not allowed to log in from %s", user, rhost); - } else if (tty != NULL || *(const char *)tty != '\0') { + } else if (tty != NULL && *(const char *)tty != '\0') { PAM_LOG("Checking login.access for user %s on tty %s", (const char *)user, (const char *)tty); if (login_access(user, tty) != 0) |
