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:59:13 -0700 |
commit | 794646f5c8a032454fb7b9242740bbd1b0211dbb (patch) | |
tree | 0c69c59e3ed2830a941a56e3c4beaf83fd02644d /gdbus | |
parent | 97ff06cd02dacadbc35bea0a0a9ad2d238baf836 (diff) | |
download | pacrunner-794646f5c8a032454fb7b9242740bbd1b0211dbb.tar.gz |
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 8bc12f5..7a94156 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, |