summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2010-04-19 16:21:55 +0200
committerAlexander Larsson <alexl@redhat.com>2010-04-26 11:04:33 +0200
commit3d5cae7afed2f93f0c3a61526c2f3bf6a7b73842 (patch)
tree0668c3ec0932419baf352878d0c08e03b0758605 /common
parent44d24d60dcd850e13e941c28f3250981abee6fe5 (diff)
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.
Diffstat (limited to 'common')
-rw-r--r--common/gvfsdaemonprotocol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/gvfsdaemonprotocol.c b/common/gvfsdaemonprotocol.c
index 3e6a3ca2..7feefeb9 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;
}