From 141f8da7b6d2f582004786a9b4d8aa50a0d9130f Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 20 Jun 2016 20:07:13 +0200 Subject: [PATCH] apps/req.c: Increment the right variable when parsing '+' Reviewed-by: Rich Salz (cherry picked from commit 14d3c0dd2c31b9fd1f92d608524dd650f5ec5a7e) --- apps/req.c | 7 +++---- 1 file 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; -- 2.40.0