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

Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Richard Levitte 2016-06-20 20:07:13 +02:00
parent 5e6e650d62
commit 14d3c0dd2c

View file

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