]> git.meshlink.io Git - catta/commitdiff
forward error back to the client when a commit() call fails
authorLennart Poettering <lennart@poettering.net>
Mon, 30 Jan 2006 15:41:54 +0000 (15:41 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 30 Jan 2006 15:41:54 +0000 (15:41 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1118 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-daemon/dbus-entry-group.c

index 65c7b072d3f685c27123d1736bd6c15c5305583d..1d8c957a79e1f490bf3b2ed465cab4c8e0b8707e 100644 (file)
@@ -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);