Fix argument processing.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 22 Oct 2013 04:37:10 +0000 (05:37 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 2 Nov 2013 13:41:51 +0000 (13:41 +0000)
(cherry picked from commit abf840e4f71c3a8795428c213fd37ece2a910443)

ssl/ssl_conf.c

index c1e18c2e8aafc0e4041a16d0331e0c78b36c354c..c7dd530649ba38218b73e9b9a9e0e7373f0d0cc4 100644 (file)
@@ -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;
                }