summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2008-11-25 14:07:07 +0000
committerDan Winship <danw@src.gnome.org>2008-11-25 14:07:07 +0000
commit7c8cc1c6acfa112991404c2ec4d9b6ded044c473 (patch)
tree6f55d9f62e4b43cf6b9a4f319a147db23541bb1a
parent6c9e4efd2aa236ece6549455e423eb46af937ba9 (diff)
downloadlibsoup-7c8cc1c6acfa112991404c2ec4d9b6ded044c473.tar.gz
set a path, since the docs say SoupURI always has a path, and the URIs
* libsoup/soup-uri.c (soup_uri_copy_root): set a path, since the docs say SoupURI always has a path, and the URIs returned from here get used as the URIs for proxy CONNECT requests, which might get examined by various session features. Fixes a crash in the cookie code. #562191, Mark Lee. svn path=/branches/gnome-2-24/; revision=1211
-rw-r--r--ChangeLog8
-rw-r--r--libsoup/soup-uri.c1
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 261c7055..608b33eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-11-25 Dan Winship <danw@gnome.org>
+
+ * libsoup/soup-uri.c (soup_uri_copy_root): set a path, since the
+ docs say SoupURI always has a path, and the URIs returned from
+ here get used as the URIs for proxy CONNECT requests, which might
+ get examined by various session features. Fixes a crash in the
+ cookie code. #562191, Mark Lee.
+
2008-11-24 Dan Winship <danw@gnome.org>
* configure.in: 2.24.2
diff --git a/libsoup/soup-uri.c b/libsoup/soup-uri.c
index ceca3abe..21f65203 100644
--- a/libsoup/soup-uri.c
+++ b/libsoup/soup-uri.c
@@ -505,6 +505,7 @@ soup_uri_copy_root (SoupURI *uri)
dup->scheme = uri->scheme;
dup->host = g_strdup (uri->host);
dup->port = uri->port;
+ dup->path = g_strdup ("/");
return dup;
}