]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix if-else mismatch in rev.13319
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 22 Mar 2014 12:58:52 +0000 (06:58 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 22 Mar 2014 12:58:52 +0000 (06:58 -0600)
helpers/basic_auth/NIS/basic_nis_auth.cc

index b2f9a8bee3527494ca3b8bb2b0ace21ab610b83b..11a215636f200bb5501ba91e99df2d88b67516ac 100644 (file)
@@ -69,14 +69,14 @@ main(int argc, char **argv)
         } else if (strcmp(nispasswd, (char *) crypt(passwd, nispasswd)) == 0) {
             /* All ok !, thanks... */
             printf("OK\n");
+        } else {
+            /* Password incorrect */
+            printf("ERR Wrong password\n");
 #else
         } else {
             /* Password incorrect */
             printf("BH message=\"Missing crypto capability\"\n");
 #endif
-        } else {
-            /* Password incorrect */
-            printf("ERR Wrong password\n");
         }
     }
     exit(0);