X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=ssl.c;h=85701ce03a47fe6b1b88b8d0700fa18b4365e230;hp=e2389f0800ff057285f183f116f0f30246d21de6;hb=d119cac814d19b58c0a299ebaeed7f58edf887d5;hpb=41669199aef64461ba14d955bff9f34a8e7555aa diff --git a/ssl.c b/ssl.c index e2389f08..85701ce0 100644 --- a/ssl.c +++ b/ssl.c @@ -1548,13 +1548,10 @@ static int host_is_ip_address(const char *host) for (p = host; *p; p++) { - if (*p != '.') + if ((*p != '.') && !privoxy_isdigit(*p)) { - if (!privoxy_isdigit(*p)) - { - /* Not a dot or digit so it can't be an IPv4 address. */ - return 0; - } + /* Not a dot or digit so it can't be an IPv4 address. */ + return 0; } }