about summary refs log tree commit diff
path: root/nis/nss_nis/nis-pwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'nis/nss_nis/nis-pwd.c')
-rw-r--r--nis/nss_nis/nis-pwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nis/nss_nis/nis-pwd.c b/nis/nss_nis/nis-pwd.c
index 614637a173..c0acaa13e5 100644
--- a/nis/nss_nis/nis-pwd.c
+++ b/nis/nss_nis/nis-pwd.c
@@ -254,7 +254,7 @@ _nss_nis_getpwnam_r (const char *name, struct passwd *pwd,
       char *endp;
       size_t restlen;
 
-      if (encrypted != NULL
+      if (encrypted == NULL
 	  || (endp = strchr (++encrypted, ':')) == NULL
 	  || (p = strchr (p + 1, ':')) == NULL)
 	{
@@ -358,7 +358,7 @@ _nss_nis_getpwuid_r (uid_t uid, struct passwd *pwd,
       char *endp;
       size_t restlen;
 
-      if (encrypted != NULL
+      if (encrypted == NULL
 	  || (endp = strchr (++encrypted, ':')) == NULL
 	  || (p = strchr (p + 1, ':')) == NULL)
 	{