]> spindle.queued.net Git - midori/commitdiff
Bail out of DNS prefetch if the host is NULL
authorChristian Dywan <christian@twotoasts.de>
Tue, 13 Oct 2009 11:25:29 +0000 (13:25 +0200)
committerChristian Dywan <christian@twotoasts.de>
Tue, 13 Oct 2009 11:25:29 +0000 (13:25 +0200)
extensions/dnsprefetch.c

index 83b52e9912bb0eb0c12dd70185d5b5cd16720baf..31a56ee77010e3ddcaab581f7b7a39606927861c 100644 (file)
@@ -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)