diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2018-06-24 19:46:19 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@posteo.net> | 2018-06-28 17:12:50 +0000 |
commit | 3488b1df258daf8b9dee97d06b91272a9ce62c05 (patch) | |
tree | 0be00f14571a8d03d4b69dada0561fac2ea575a8 /libsoup/soup-cookie-jar.c | |
parent | caf90b35d6243a0c7d00bdcdee45fa385f2daefa (diff) | |
download | libsoup-3488b1df258daf8b9dee97d06b91272a9ce62c05.tar.gz |
cookie-jar: bail if hostname is an empty stringgnome-3-26
There are several other ways to fix the problem with this function, but
skipping over all of the code is probably the simplest.
Fixes #3
(cherry picked from commit db2b0d5809d5f8226d47312b40992cadbcde439f)
(cherry picked from commit c5c41ad1d36c1efb3226a74ac8ea591419882892)
Diffstat (limited to 'libsoup/soup-cookie-jar.c')
-rw-r--r-- | libsoup/soup-cookie-jar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/soup-cookie-jar.c b/libsoup/soup-cookie-jar.c index 41b614ad..c1dc9c5d 100644 --- a/libsoup/soup-cookie-jar.c +++ b/libsoup/soup-cookie-jar.c @@ -306,7 +306,7 @@ get_cookies (SoupCookieJar *jar, SoupURI *uri, gboolean for_http, gboolean copy_ priv = soup_cookie_jar_get_instance_private (jar); - if (!uri->host) + if (!uri->host || !uri->host[0]) return NULL; /* The logic here is a little weird, but the plan is that if |