summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchleun.moon <chleun.moon@samsung.com>2018-09-04 20:00:10 +0900
committerchleun.moon <chleun.moon@samsung.com>2018-09-04 20:02:59 +0900
commit2c680052ea4bebd0956749d31d733e10bc3ef784 (patch)
treed54e8d5f2eec56ddef00b64eed660c1f64a30cd7
parent4b0ec45685c0f91b82121a633a31e40eb46b8f92 (diff)
downloadlibsoup-2c680052ea4bebd0956749d31d733e10bc3ef784.tar.gz
libsoup-2c680052ea4bebd0956749d31d733e10bc3ef784.tar.bz2
libsoup-2c680052ea4bebd0956749d31d733e10bc3ef784.zip
https://nvd.nist.gov/vuln/detail/CVE-2018-12910 Change-Id: Icd72ec579aaf2e4d372be33ebb9346a34565d097 Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
-rwxr-xr-xlibsoup/soup-cookie-jar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/soup-cookie-jar.c b/libsoup/soup-cookie-jar.c
index eac9cd96..fddf2ec8 100755
--- a/libsoup/soup-cookie-jar.c
+++ b/libsoup/soup-cookie-jar.c
@@ -307,7 +307,7 @@ get_cookies (SoupCookieJar *jar, SoupURI *uri, gboolean for_http, gboolean copy_
priv = SOUP_COOKIE_JAR_GET_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