gdbus: Check signature of NameAcquired, NameLost
commit7c97e3d784f7243d6a426f1c5659cbccc6acb139
authorSimon McVittie <smcv@collabora.com>
Mon, 19 Jun 2017 11:47:50 +0000 (19 12:47 +0100)
committerPhilip Withnall <withnall@endlessm.com>
Mon, 7 Aug 2017 16:31:31 +0000 (7 17:31 +0100)
tree63f10b820b989cba0d0060be2f489c76b77f4959
parentc53b44edb28b7aec62349a11a8263c488b35b70e
gdbus: Check signature of NameAcquired, NameLost

Calling g_variant_get (parameters, "(&s)") when parameters has a
signature other than (s) is considered to be a programming error.
In practice the message bus (dbus-daemon or a reimplementation) should
always send the expected type, but be defensive.

(Modified by Philip Withnall to improve type check.)

Signed-off-by: Simon McVittie <smcv@collabora.com>
Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://bugzilla.gnome.org/show_bug.cgi?id=784392
gio/gdbusnameowning.c