From 8636d3b9c692a8054dd28a30874b012186507ae1 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 13 Oct 2009 13:25:29 +0200 Subject: [PATCH] Bail out of DNS prefetch if the host is NULL --- extensions/dnsprefetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)