summaryrefslogtreecommitdiffstats
path: root/avahi-daemon/dbus-entry-group.c
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-daemon/dbus-entry-group.c')
-rw-r--r--avahi-daemon/dbus-entry-group.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/avahi-daemon/dbus-entry-group.c b/avahi-daemon/dbus-entry-group.c
index 65c7b07..1d8c957 100644
--- a/avahi-daemon/dbus-entry-group.c
+++ b/avahi-daemon/dbus-entry-group.c
@@ -120,7 +120,9 @@ DBusHandlerResult avahi_dbus_msg_entry_group_impl(DBusConnection *c, DBusMessage
goto fail;
}
- avahi_s_entry_group_commit(i->entry_group);
+ if (avahi_s_entry_group_commit(i->entry_group) < 0)
+ return avahi_dbus_respond_error(c, m, avahi_server_errno(avahi_server), NULL);
+
return avahi_dbus_respond_ok(c, m);