Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 519716 | Differences between
and this patch

Collapse All | Expand All

(-)a/client/config_init.c (-1 / +14 lines)
Lines 1824-1829 validate_options(fko_cli_options_t *options) Link Here
1824
                log_msg(LOG_VERBOSITY_WARNING,
1824
                log_msg(LOG_VERBOSITY_WARNING,
1825
                    "[-] WARNING: Should use -a or -R to harden SPA against potential MITM attacks");
1825
                    "[-] WARNING: Should use -a or -R to harden SPA against potential MITM attacks");
1826
            }
1826
            }
1827
        }
1828
1829
        /* Make sure -a overrides IP resolution
1830
        */
1831
        if(options->allow_ip_str[0] != 0x0
1832
                && strncasecmp(options->allow_ip_str, "resolve", strlen("resolve")) != 0)
1833
        {
1834
            options->resolve_ip_http_https = 1;
1827
1835
1828
            if(! is_valid_ipv4_addr(options->allow_ip_str))
1836
            if(! is_valid_ipv4_addr(options->allow_ip_str))
1829
            {
1837
            {
Lines 1856-1861 validate_options(fko_cli_options_t *options) Link Here
1856
            snprintf(options->http_user_agent, HTTP_MAX_USER_AGENT_LEN,
1864
            snprintf(options->http_user_agent, HTTP_MAX_USER_AGENT_LEN,
1857
                "%s%s", "Fwknop/", MY_VERSION);
1865
                "%s%s", "Fwknop/", MY_VERSION);
1858
1866
1867
#if AFL_FUZZING
1868
    /* Don't issue IP resolution requests in AFL fuzzing mode
1869
    */
1870
    options->resolve_ip_http_https = 0;
1871
#endif
1872
1859
    if(options->http_proxy[0] != 0x0 && options->spa_proto != FKO_PROTO_HTTP)
1873
    if(options->http_proxy[0] != 0x0 && options->spa_proto != FKO_PROTO_HTTP)
1860
    {
1874
    {
1861
        log_msg(LOG_VERBOSITY_ERROR,
1875
        log_msg(LOG_VERBOSITY_ERROR,
1862
- 

Return to bug 519716