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:15:44 +0200 |
commit | 141f8da7b6d2f582004786a9b4d8aa50a0d9130f (patch) | |
tree | cd259c5cf4d36c39363a6bef5b94852c7c0da57b | |
parent | c3bc7f498815b355533d96b54b9a09e030d4130c (diff) |
apps/req.c: Increment the right variable when parsing '+'
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit 14d3c0dd2c31b9fd1f92d608524dd650f5ec5a7e)
-rw-r--r-- | apps/req.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/req.c b/apps/req.c index e818bd2976..9f1066f616 100644 --- a/apps/req.c +++ b/apps/req.c @@ -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; |