summaryrefslogtreecommitdiffstats
path: root/gdbus
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-05-17 15:19:58 -0300
committerMarcel Holtmann <marcel@holtmann.org>2012-05-17 19:58:01 -0700
commita77fcca3c6d830044eab2b6109d08cb3369d481c (patch)
treeedbeaf6904220001a878fdf1e726f4267d9d7b59 /gdbus
parent25268b42705b293e0929a0e9209bcb369f63713b (diff)
downloadofono-a77fcca3c6d830044eab2b6109d08cb3369d481c.tar.bz2
gdbus: return if method signature is malformed
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/object.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdbus/object.c b/gdbus/object.c
index 8bc12f53..7a941562 100644
--- a/gdbus/object.c
+++ b/gdbus/object.c
@@ -107,6 +107,10 @@ static void print_arguments(GString *gstr, const char *sig,
break;
}
+ if (!complete) {
+ error("Unexpected signature: %s", sig);
+ return;
+ }
if (direction)
g_string_append_printf(gstr,