summaryrefslogtreecommitdiffstats
path: root/avahi-daemon/dbus-record-browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-daemon/dbus-record-browser.c')
-rw-r--r--avahi-daemon/dbus-record-browser.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/avahi-daemon/dbus-record-browser.c b/avahi-daemon/dbus-record-browser.c
index 57be6e8..f4cd217 100644
--- a/avahi-daemon/dbus-record-browser.c
+++ b/avahi-daemon/dbus-record-browser.c
@@ -116,6 +116,11 @@ void avahi_dbus_record_browser_callback(
m = dbus_message_new_signal(i->path, AVAHI_DBUS_INTERFACE_RECORD_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) {
uint8_t rdata[0xFFFF];
size_t size;