diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-05-17 15:19:58 -0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-05-17 19:57:55 -0700 |
commit | 492912e95256f80fb4901402332bf6b7b29ee80b (patch) | |
tree | e03a16827dfd5e579d1e2b9b137144e3fa4260e1 /gdbus | |
parent | 9a6b7928d5bae8be76c014215644dfff3af13e73 (diff) | |
download | connman-492912e95256f80fb4901402332bf6b7b29ee80b.tar.gz connman-492912e95256f80fb4901402332bf6b7b29ee80b.tar.bz2 connman-492912e95256f80fb4901402332bf6b7b29ee80b.zip |
gdbus: return if method signature is malformed
Diffstat (limited to 'gdbus')
-rw-r--r-- | gdbus/object.c | 4 |
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, |