Blame SOURCES/0001-cookie-jar-bail-if-hostname-is-an-empty-string.patch

a00cdb
From db2b0d5809d5f8226d47312b40992cadbcde439f Mon Sep 17 00:00:00 2001
a00cdb
From: Michael Catanzaro <mcatanzaro@igalia.com>
a00cdb
Date: Sun, 24 Jun 2018 19:46:19 -0500
a00cdb
Subject: [PATCH] cookie-jar: bail if hostname is an empty string
a00cdb
a00cdb
There are several other ways to fix the problem with this function, but
a00cdb
skipping over all of the code is probably the simplest.
a00cdb
a00cdb
Fixes #3
a00cdb
---
a00cdb
 libsoup/soup-cookie-jar.c | 2 +-
a00cdb
 1 file changed, 1 insertion(+), 1 deletion(-)
a00cdb
a00cdb
diff --git a/libsoup/soup-cookie-jar.c b/libsoup/soup-cookie-jar.c
a00cdb
index 2369c8a..b2b7890 100644
a00cdb
--- a/libsoup/soup-cookie-jar.c
a00cdb
+++ b/libsoup/soup-cookie-jar.c
a00cdb
@@ -307,7 +307,7 @@ get_cookies (SoupCookieJar *jar, SoupURI *uri, gboolean for_http, gboolean copy_
a00cdb
 
a00cdb
 	priv = soup_cookie_jar_get_instance_private (jar);
a00cdb
 
a00cdb
-	if (!uri->host)
a00cdb
+	if (!uri->host || !uri->host[0])
a00cdb
 		return NULL;
a00cdb
 
a00cdb
 	/* The logic here is a little weird, but the plan is that if
a00cdb
-- 
a00cdb
2.17.1
a00cdb