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 5b01244..2a7329f 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;