From: Ulrich Drepper Date: Thu, 24 Sep 1998 11:13:40 +0000 (+0000) Subject: (_nss_nis_getpwent_r): Correct test for invalid password. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1d4191b047d16e4d4a49b9efe9f960c7e071248;p=thirdparty%2Fglibc.git (_nss_nis_getpwent_r): Correct test for invalid password. --- diff --git a/nis/nss_nis/nis-pwd.c b/nis/nss_nis/nis-pwd.c index d8960740b86..8c3c793012f 100644 --- a/nis/nss_nis/nis-pwd.c +++ b/nis/nss_nis/nis-pwd.c @@ -125,7 +125,7 @@ internal_nis_getpwent_r (struct passwd *pwd, char *buffer, size_t buflen) char *endp, *tmp; size_t restlen; - if (encrypted != NULL + if (encrypted == NULL || (endp = strchr (++encrypted, ':')) == NULL || (p = strchr (p + 1, ':')) == NULL) {