]> git.0d.be Git - empathy.git/commitdiff
server-tls-handler: fix the variant type when fetching ServerCertificate
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 25 Sep 2012 13:32:19 +0000 (15:32 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 25 Sep 2012 13:34:02 +0000 (15:34 +0200)
g_variant_lookup() fails if we don't specificy that this string is secretly an
object path.

https://bugzilla.gnome.org/show_bug.cgi?id=684783

libempathy/empathy-server-tls-handler.c

index 14ab1aba7c0912437a9f8b7b1758d7c181d31d7b..7a6bdf1ed5073b8ede23ab0971911270b3913c3f 100644 (file)
@@ -145,7 +145,7 @@ tls_handler_init_async (GAsyncInitable *initable,
 
   g_variant_lookup (properties,
       EMP_IFACE_CHANNEL_TYPE_SERVER_TLS_CONNECTION ".ServerCertificate",
-      "&s", &cert_object_path);
+      "&o", &cert_object_path);
   bus_name = tp_proxy_get_bus_name (TP_PROXY (priv->channel));
 
   g_variant_unref (properties);