[evolution-mapi] Fix error reading from org.gnome.KrbAuthDialog.acquireTgt



commit 34dec0bbec06e3ed37924adec148923ea9710d0b
Author: Milan Crha <mcrha redhat com>
Date:   Mon Sep 5 12:39:24 2011 +0200

    Fix error reading from org.gnome.KrbAuthDialog.acquireTgt

 src/libexchangemapi/exchange-mapi-utils.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/libexchangemapi/exchange-mapi-utils.c b/src/libexchangemapi/exchange-mapi-utils.c
index 569864a..fcf63b1 100644
--- a/src/libexchangemapi/exchange-mapi-utils.c
+++ b/src/libexchangemapi/exchange-mapi-utils.c
@@ -885,8 +885,15 @@ exchange_mapi_util_trigger_krb_auth (const ExchangeMapiProfileData *empd, GError
 	reply = g_dbus_connection_send_message_with_reply_sync (connection, message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, 300 * 1000, NULL, NULL, &local_error);
 	g_free (name);
 
+	if (!local_error && reply) {
+		if (g_dbus_message_to_gerror (reply, &local_error)) {
+			g_object_unref (reply);
+			reply = NULL;
+		}
+	}
+
 	if (local_error) {
-		g_warning ("%s: %s\n", G_STRFUNC, local_error->message);
+		g_dbus_error_strip_remote_error (local_error);
 		g_propagate_error (error, local_error);
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]