Commit 14d3c0dd authored by Richard Levitte's avatar Richard Levitte
Browse files

apps/req.c: Increment the right variable when parsing '+'



Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent 5e6e650d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;