apps/req.c: Increment the right variable when parsing '+'

Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit 14d3c0dd2c)
This commit is contained in:
Richard Levitte 2016-06-20 20:07:13 +02:00
parent c3bc7f4988
commit 141f8da7b6
1 changed files with 3 additions and 4 deletions

View File

@ -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;