From: Amos Jeffries Date: Sat, 22 Mar 2014 12:58:52 +0000 (-0600) Subject: Fix if-else mismatch in rev.13319 X-Git-Tag: SQUID_3_5_0_1~325 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3997074984ecdb73b6848e25ec04671777404143;p=thirdparty%2Fsquid.git Fix if-else mismatch in rev.13319 --- diff --git a/helpers/basic_auth/NIS/basic_nis_auth.cc b/helpers/basic_auth/NIS/basic_nis_auth.cc index b2f9a8bee3..11a215636f 100644 --- a/helpers/basic_auth/NIS/basic_nis_auth.cc +++ b/helpers/basic_auth/NIS/basic_nis_auth.cc @@ -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);