From: Dr. Stephen Henson Date: Tue, 22 Oct 2013 04:37:10 +0000 (+0100) Subject: Fix argument processing. X-Git-Tag: OpenSSL_1_0_2-beta1~179 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bed27f4db397ac0f5daaba7e4c4079718bbb6b31;p=oweals%2Fopenssl.git Fix argument processing. (cherry picked from commit abf840e4f71c3a8795428c213fd37ece2a910443) --- diff --git a/ssl/ssl_conf.c b/ssl/ssl_conf.c index c1e18c2e8a..c7dd530649 100644 --- a/ssl/ssl_conf.c +++ b/ssl/ssl_conf.c @@ -439,7 +439,7 @@ static int ssl_conf_cmd_skip_prefix(SSL_CONF_CTX *cctx, const char **pcmd) } else if (cctx->flags & SSL_CONF_FLAG_CMDLINE) { - if (**pcmd != '-' || !*pcmd[1]) + if (**pcmd != '-' || !(*pcmd)[1]) return 0; *pcmd += 1; }