diff options
author | Richard Levitte <levitte@openssl.org> | 2016-06-20 20:07:13 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-06-20 20:11:07 +0200 |
commit | 14d3c0dd2c31b9fd1f92d608524dd650f5ec5a7e (patch) | |
tree | ee5750a96dbe6c90f9708de8c9059f2f348dd7b2 /apps | |
parent | 5e6e650d62af09f47d63bfdd6c92e3b16e9da644 (diff) |
apps/req.c: Increment the right variable when parsing '+'
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/req.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |