From 14d3c0dd2c31b9fd1f92d608524dd650f5ec5a7e 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 --- apps/req.c | 6 +++--- 1 file 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; -- 2.25.1