]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_nss_nis_getpwent_r): Correct test for invalid password.
authorUlrich Drepper <drepper@redhat.com>
Thu, 24 Sep 1998 11:13:40 +0000 (11:13 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 24 Sep 1998 11:13:40 +0000 (11:13 +0000)
nis/nss_nis/nis-pwd.c

index d8960740b8653b76d8974733e2e04fc140330f95..8c3c793012f274e399e9fde98c3dd38d9086928a 100644 (file)
@@ -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)
            {