aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/widgets/ephy-location-entry.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 603284b96..f89c6d834 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -945,7 +945,8 @@ do_dns_prefetch (PrefetchHelper *helper)
#else
SoupSession *session = webkit_get_default_session ();
- soup_session_prepare_for_uri (session, helper->uri);
+ if (helper->uri)
+ soup_session_prefetch_dns (session, helper->uri->host, NULL, NULL, NULL);
#endif
helper->entry->priv->dns_prefetch_handler = 0;