[Xfce4-commits] <midori:master> Bail out of DNS prefetch if the host is NULL

Christian Dywan noreply at xfce.org
Tue Oct 13 13:28:01 CEST 2009


Updating branch refs/heads/master
         to 8636d3b9c692a8054dd28a30874b012186507ae1 (commit)
       from 8a9599d5a971f97b98b0f5cb6808a60c4b5c2308 (commit)

commit 8636d3b9c692a8054dd28a30874b012186507ae1
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Oct 13 13:25:29 2009 +0200

    Bail out of DNS prefetch if the host is NULL

 extensions/dnsprefetch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/extensions/dnsprefetch.c b/extensions/dnsprefetch.c
index 83b52e9..31a56ee 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)



More information about the Xfce4-commits mailing list