summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-04-03 11:27:59 -0400
committerDan Winship <danw@gnome.org>2013-04-03 11:59:55 -0400
commitb376dd82ad9beba54e85911a39f41ba8cea08498 (patch)
tree2daeaf98b2a088d8a43f7154ed25e74e345e0916
parent6666b3cd99a4931bd28b622918c121f92cf33b52 (diff)
downloadlibsoup-b376dd82ad9beba54e85911a39f41ba8cea08498.tar.gz
libsoup-b376dd82ad9beba54e85911a39f41ba8cea08498.tar.bz2
libsoup-b376dd82ad9beba54e85911a39f41ba8cea08498.zip
soup-connection: fix SoupProxyResolverDefault breakage
It got broken at the last minute when adding SoupSession:proxy-resolver support. https://bugzilla.gnome.org/show_bug.cgi?id=697028
-rw-r--r--libsoup/soup-connection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsoup/soup-connection.c b/libsoup/soup-connection.c
index bcc5af48..fbddfea3 100644
--- a/libsoup/soup-connection.c
+++ b/libsoup/soup-connection.c
@@ -133,7 +133,8 @@ soup_connection_set_property (GObject *object, guint prop_id,
priv->soup_proxy_resolver = g_object_ref (proxy_resolver);
break;
case PROP_G_PROXY_RESOLVER:
- priv->g_proxy_resolver = g_value_dup_object (value);
+ if (g_value_get_object (value))
+ priv->g_proxy_resolver = g_value_dup_object (value);
break;
case PROP_SSL:
priv->ssl = g_value_get_boolean (value);