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_1_0-pre6~388 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=14d3c0dd2c31b9fd1f92d608524dd650f5ec5a7e;p=oweals%2Fopenssl.git apps/req.c: Increment the right variable when parsing '+' Reviewed-by: Rich Salz --- diff --git a/apps/req.c b/apps/req.c index d1f5dcb345..3e6cb07460 100644 --- a/apps/req.c +++ b/apps/req.c @@ -1109,12 +1109,12 @@ static int auto_info(X509_REQ *req, STACK_OF(CONF_VALUE) *dn_sk, } } #ifndef CHARSET_EBCDIC - plus_char = (*p == '+'); + plus_char = (*type == '+'); #else - plus_char = (*p == os_toascii['+']); + plus_char = (*type == os_toascii['+']); #endif if (plus_char) { - p++; + type++; mval = -1; } else mval = 0;