summaryrefslogtreecommitdiffstats
path: root/avahi-daemon/dbus-async-service-resolver.c
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-daemon/dbus-async-service-resolver.c')
-rw-r--r--avahi-daemon/dbus-async-service-resolver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/avahi-daemon/dbus-async-service-resolver.c b/avahi-daemon/dbus-async-service-resolver.c
index 023543d..19da6ff 100644
--- a/avahi-daemon/dbus-async-service-resolver.c
+++ b/avahi-daemon/dbus-async-service-resolver.c
@@ -73,6 +73,11 @@ void avahi_dbus_async_service_resolver_callback(
reply = dbus_message_new_signal(i->path, AVAHI_DBUS_INTERFACE_SERVICE_RESOLVER, avahi_dbus_map_resolve_signal_name(event));
+ if (!reply) {
+ avahi_log_error("Failed allocate message");
+ return;
+ }
+
if (event == AVAHI_RESOLVER_FOUND) {
char t[AVAHI_ADDRESS_STR_MAX], *pt = t;
int32_t i_interface, i_protocol, i_aprotocol;