summaryrefslogtreecommitdiffstats
path: root/avahi-daemon/dbus-service-type-browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-daemon/dbus-service-type-browser.c')
-rw-r--r--avahi-daemon/dbus-service-type-browser.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/avahi-daemon/dbus-service-type-browser.c b/avahi-daemon/dbus-service-type-browser.c
index ce4787f..03cc091 100644
--- a/avahi-daemon/dbus-service-type-browser.c
+++ b/avahi-daemon/dbus-service-type-browser.c
@@ -109,6 +109,11 @@ void avahi_dbus_service_type_browser_callback(AvahiSServiceTypeBrowser *b, Avahi
m = dbus_message_new_signal(i->path, AVAHI_DBUS_INTERFACE_SERVICE_TYPE_BROWSER, avahi_dbus_map_browse_signal_name(event));
+ if (!m) {
+ avahi_log_error("Failed allocate message");
+ return;
+ }
+
if (event == AVAHI_BROWSER_NEW || event == AVAHI_BROWSER_REMOVE) {
assert(type);
assert(domain);