mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
apps/req.c: Increment the right variable when parsing '+'
Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
5e6e650d62
commit
14d3c0dd2c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user