Bail out of DNS prefetch if the host is NULL
This commit is contained in:
parent
8a9599d5a9
commit
8636d3b9c6
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue