]> git.meshlink.io Git - catta/blobdiff - avahi-daemon/dbus-async-service-resolver.c
daemon: add some minimal OOM checking against D-Bus
[catta] / avahi-daemon / dbus-async-service-resolver.c
index 023543d87ecec40404f9c6f981f2596cb22de276..19da6ffe27dc88354798bda20166d4806509f9fb 100644 (file)
@@ -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;