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>
Tue, 22 Oct 2013 04:44:23 +0000 (05:44 +0100)
ssl/ssl_conf.c

index 4119afa4731e000f72434cc320c41848d7f8addf..90d77fa0344049f5908583187ff9110955f6071a 100644 (file)
@@ -438,7 +438,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;
                }