GDBusMessage: Properly check error and bail if set

Otherwise we may set a GError on top of it.

Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
David Zeuthen 2010-06-17 16:02:24 -04:00
parent 8a105625b0
commit 57dff1e060

View 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))
{