[libgnome-keyring] Fix bugs in decoding plain OpenSession response.
- From: Stefan Walter <stefw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgnome-keyring] Fix bugs in decoding plain OpenSession response.
- Date: Mon, 14 Dec 2009 15:12:02 +0000 (UTC)
commit 45bc008d1d01bbb7761df56ec8ecf250d3ced928
Author: Stef Walter <stef memberwebs com>
Date: Sat Dec 12 18:07:33 2009 +0000
Fix bugs in decoding plain OpenSession response.
library/gkr-session.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/library/gkr-session.c b/library/gkr-session.c
index cc2e178..2de0baf 100644
--- a/library/gkr-session.c
+++ b/library/gkr-session.c
@@ -141,7 +141,7 @@ decode_open_session_plain (DBusMessage *message, const char **path)
g_assert (path);
/* Parse the incomming message */
- if (dbus_message_has_signature (message, "vo"))
+ if (!dbus_message_has_signature (message, "vo"))
return FALSE;
if (!dbus_message_iter_init (message, &iter))
g_return_val_if_reached (FALSE);
@@ -150,7 +150,7 @@ decode_open_session_plain (DBusMessage *message, const char **path)
return FALSE;
if (!dbus_message_iter_next (&iter))
g_return_val_if_reached (FALSE);
- dbus_message_iter_get_basic (&iter, &path);
+ dbus_message_iter_get_basic (&iter, path);
return TRUE;
}
@@ -377,7 +377,6 @@ gkr_session_negotiate (GkrOperation *op)
/* Try to start a new AES session */
session_negotiate_aes (op);
-
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]