diff options
author | Bastien Nocera <hadess@hadess.net> | 2009-08-11 23:26:43 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-08-11 15:31:01 -0700 |
commit | 8782cdd9ee88e2ffd161b59f4ead7dfe818ddc2f (patch) | |
tree | d80fe49a382787cc9e5aeba33b111db6b074ec40 /cups | |
parent | b9ce196c06912bdc34f43713d8695f3608b4ace1 (diff) |
Don't abort cups backend on property change
Make sure the cups backend doesn't abort when trying to
access a property that's not Discovering.
Diffstat (limited to 'cups')
-rw-r--r-- | cups/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cups/main.c b/cups/main.c index fda33398..96a2e56d 100644 --- a/cups/main.c +++ b/cups/main.c @@ -506,6 +506,8 @@ static DBusHandlerResult filter_func(DBusConnection *connection, DBusMessage *me dbus_message_iter_init(message, &iter); dbus_message_iter_get_basic(&iter, &name); + if (name == NULL || strcmp(name, "Discovering") != 0) + return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; dbus_message_iter_next(&iter); dbus_message_iter_recurse(&iter, &value_iter); dbus_message_iter_get_basic(&value_iter, &discovering); |