[gvfs] Skip malformed data from the backend side
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] Skip malformed data from the backend side
- Date: Mon, 26 Apr 2010 09:04:50 +0000 (UTC)
commit 3d5cae7afed2f93f0c3a61526c2f3bf6a7b73842
Author: Tomas Bzatek <tbzatek redhat com>
Date: Mon Apr 19 16:21:55 2010 +0200
Skip malformed data from the backend side
Sometimes we may get unexpected data from dbus which was leading
to an endless loop.
See bug 614544 for reference.
common/gvfsdaemonprotocol.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/common/gvfsdaemonprotocol.c b/common/gvfsdaemonprotocol.c
index 3e6a3ca..7feefeb 100644
--- a/common/gvfsdaemonprotocol.c
+++ b/common/gvfsdaemonprotocol.c
@@ -519,6 +519,7 @@ _g_dbus_get_file_info (DBusMessageIter *iter,
g_object_unref (info);
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED,
_("Invalid file info format"));
+ dbus_message_iter_next (iter);
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]