GDBusMessage: Properly check error and bail if set
authorDavid Zeuthen <davidz@redhat.com>
Thu, 17 Jun 2010 20:02:24 +0000 (16:02 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Thu, 17 Jun 2010 20:12:46 +0000 (16:12 -0400)
Otherwise we may set a GError on top of it.

Signed-off-by: David Zeuthen <davidz@redhat.com>
gio/gdbusmessage.c

index 2c2a832..18833c8 100644 (file)
@@ -970,6 +970,8 @@ parse_value_from_blob (GMemoryInputStream    *mis,
       if (!ensure_input_padding (mis, 4, &local_error))
         goto fail;
       array_len = g_data_input_stream_read_uint32 (dis, NULL, &local_error);
+      if (local_error != NULL)
+        goto fail;
 
       if (array_len > (2<<26))
         {