diff options
author | des <des@FreeBSD.org> | 2003-04-30 00:44:05 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2003-04-30 00:44:05 +0000 |
commit | 4f251ebb977bb8290036b334a92ab0ad273a972d (patch) | |
tree | ddfe4bbdabb2f5dcd1eb53956ec434e9c1decf19 /lib/libpam/modules/pam_unix | |
parent | 668955a3c5893b64f588c8be729010bc97bd313e (diff) | |
download | FreeBSD-src-4f251ebb977bb8290036b334a92ab0ad273a972d.zip FreeBSD-src-4f251ebb977bb8290036b334a92ab0ad273a972d.tar.gz |
Treat an empty PAM_RHOST the same as a NULL one.
PR: bin/51508
Diffstat (limited to 'lib/libpam/modules/pam_unix')
-rw-r--r-- | lib/libpam/modules/pam_unix/pam_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpam/modules/pam_unix/pam_unix.c b/lib/libpam/modules/pam_unix/pam_unix.c index afceb0e..28b9c17 100644 --- a/lib/libpam/modules/pam_unix/pam_unix.c +++ b/lib/libpam/modules/pam_unix/pam_unix.c @@ -246,7 +246,7 @@ pam_sm_acct_mgmt(pam_handle_t *pamh, int flags __unused, * PAM_NEW_AUTHTOK_REQD. */ - if (rhost) { + if (rhost && *rhost) { memset(&hints, 0, sizeof(hints)); hints.ai_family = AF_UNSPEC; if (getaddrinfo(rhost, NULL, &hints, &res) == 0) { |