Bail out of DNS prefetch if the host is NULL

This commit is contained in:
Christian Dywan 2009-10-13 13:25:29 +02:00
parent 8a9599d5a9
commit 8636d3b9c6

View file

@ -31,7 +31,7 @@ dnsprefetch_do_prefetch (WebKitWebView* web_view,
if (!uri) if (!uri)
return; return;
s_uri = soup_uri_new (uri); s_uri = soup_uri_new (uri);
if (!s_uri) if (!s_uri || !s_uri->host)
return; return;
#if GLIB_CHECK_VERSION (2, 22, 0) #if GLIB_CHECK_VERSION (2, 22, 0)