From: Richard Levitte Date: Mon, 20 Jun 2016 18:07:13 +0000 (+0200) Subject: apps/req.c: Increment the right variable when parsing '+' X-Git-Tag: OpenSSL_1_0_2i~135 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=141f8da7b6d2f582004786a9b4d8aa50a0d9130f;p=oweals%2Fopenssl.git apps/req.c: Increment the right variable when parsing '+' Reviewed-by: Rich Salz (cherry picked from commit 14d3c0dd2c31b9fd1f92d608524dd650f5ec5a7e) --- diff --git a/apps/req.c b/apps/req.c index e818bd2976..9f1066f616 100644 --- a/apps/req.c +++ b/apps/req.c @@ -1331,12 +1331,11 @@ static int auto_info(X509_REQ *req, STACK_OF(CONF_VALUE) *dn_sk, break; } #ifndef CHARSET_EBCDIC - if (*p == '+') + if (*type == '+') #else - if (*p == os_toascii['+']) + if (*type == os_toascii['+']) #endif - { - p++; + type++; mval = -1; } else mval = 0;