[evolution-data-server] camel-sasl-gssapi.c: Fix reply read of org.gnome.KrbAuthDialog.acquireTgt
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] camel-sasl-gssapi.c: Fix reply read of org.gnome.KrbAuthDialog.acquireTgt
- Date: Mon, 5 Sep 2011 10:38:24 +0000 (UTC)
commit 69fff73121c325f4b33038f8394a7642580a884e
Author: Milan Crha <mcrha redhat com>
Date: Mon Sep 5 12:37:33 2011 +0200
camel-sasl-gssapi.c: Fix reply read of org.gnome.KrbAuthDialog.acquireTgt
camel/camel-sasl-gssapi.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-sasl-gssapi.c b/camel/camel-sasl-gssapi.c
index 45e934b..6783656 100644
--- a/camel/camel-sasl-gssapi.c
+++ b/camel/camel-sasl-gssapi.c
@@ -228,7 +228,15 @@ send_dbus_message (gchar *name)
/* Sends the message: Have a 300 sec wait timeout */
reply = g_dbus_connection_send_message_with_reply_sync (connection, message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, 300 * 1000, NULL, NULL, &error);
+ if (!error && reply) {
+ if (g_dbus_message_to_gerror (reply, &error)) {
+ g_object_unref (reply);
+ reply = NULL;
+ }
+ }
+
if (error) {
+ g_dbus_error_strip_remote_error (error);
g_warning ("%s: %s\n", G_STRFUNC, error->message);
g_error_free (error);
}
@@ -236,7 +244,8 @@ send_dbus_message (gchar *name)
if (reply) {
GVariant *body = g_dbus_message_get_body (reply);
- success = body && g_variant_get_boolean (body);
+ if (body)
+ g_variant_get (body, "(b)", &success);
g_object_unref (reply);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]