From: Lennart Poettering Date: Thu, 15 May 2014 15:54:32 +0000 (+0200) Subject: sd-bus: make sure we properly handle NULL callback functions X-Git-Tag: v213~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e28adeb63818ee96dac015c0766be461e13fb64;p=thirdparty%2Fsystemd.git sd-bus: make sure we properly handle NULL callback functions --- diff --git a/src/libsystemd/sd-bus/bus-match.c b/src/libsystemd/sd-bus/bus-match.c index 3391b1a1b6e..9e0769caa63 100644 --- a/src/libsystemd/sd-bus/bus-match.c +++ b/src/libsystemd/sd-bus/bus-match.c @@ -289,7 +289,7 @@ int bus_match_run( return r; /* Run the callback. And then invoke siblings. */ - if (node->leaf.callback) { + if (node->leaf.callback->callback) { _cleanup_bus_error_free_ sd_bus_error error_buffer = SD_BUS_ERROR_NULL; sd_bus_slot *slot;