From: Christian Dywan Date: Tue, 13 Oct 2009 11:25:29 +0000 (+0200) Subject: Bail out of DNS prefetch if the host is NULL X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8636d3b9c692a8054dd28a30874b012186507ae1;p=midori Bail out of DNS prefetch if the host is NULL --- diff --git a/extensions/dnsprefetch.c b/extensions/dnsprefetch.c index 83b52e99..31a56ee7 100644 --- a/extensions/dnsprefetch.c +++ b/extensions/dnsprefetch.c @@ -31,7 +31,7 @@ dnsprefetch_do_prefetch (WebKitWebView* web_view, if (!uri) return; s_uri = soup_uri_new (uri); - if (!s_uri) + if (!s_uri || !s_uri->host) return; #if GLIB_CHECK_VERSION (2, 22, 0)