From: Yu Watanabe Date: Thu, 14 Jul 2022 01:53:54 +0000 (+0900) Subject: sd-bus: do not pass NULL when received message with invalid type X-Git-Tag: v252-rc1~663 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f0dbb0f0c4e3c0013fa5fe54441ca7f969555a7;p=thirdparty%2Fsystemd.git sd-bus: do not pass NULL when received message with invalid type Fixes #24003. --- diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c index a4d3f479c9d..d61707e729c 100644 --- a/src/libsystemd/sd-bus/sd-bus.c +++ b/src/libsystemd/sd-bus/sd-bus.c @@ -49,7 +49,7 @@ do { \ sd_bus_message *_mm = (m); \ log_debug("Got message type=%s sender=%s destination=%s path=%s interface=%s member=%s cookie=%" PRIu64 " reply_cookie=%" PRIu64 " signature=%s error-name=%s error-message=%s", \ - bus_message_type_to_string(_mm->header->type), \ + strna(bus_message_type_to_string(_mm->header->type)), \ strna(sd_bus_message_get_sender(_mm)), \ strna(sd_bus_message_get_destination(_mm)), \ strna(sd_bus_message_get_path(_mm)), \