Fix incorrect return value in apps/apps.c:parse_yesno()
authorLutz Jänicke <jaenicke@openssl.org>
Thu, 17 Apr 2008 14:15:27 +0000 (14:15 +0000)
committerLutz Jänicke <jaenicke@openssl.org>
Thu, 17 Apr 2008 14:15:27 +0000 (14:15 +0000)
PR: 1607
Submitted by: "Christophe Macé" <mace.christophe@gmail.com>

apps/apps.c

index 5b012448459399ed3052e910a636ec4ed4ff65ca..2a7329fc20b4277a8b737ec138a917b562e0aa3b 100644 (file)
@@ -2030,7 +2030,7 @@ int parse_yesno(const char *str, int def)
                case 'y': /* yes */
                case 'Y': /* YES */
                case '1': /* 1 */
-                       ret = 0;
+                       ret = 1;
                        break;
                default:
                        ret = def;