]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-bus: do not pass NULL when received message with invalid type
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 14 Jul 2022 01:53:54 +0000 (10:53 +0900)
committerLennart Poettering <lennart@poettering.net>
Thu, 14 Jul 2022 08:08:27 +0000 (10:08 +0200)
Fixes #24003.

src/libsystemd/sd-bus/sd-bus.c

index a4d3f479c9d020e40615d3967b266ad6010ec4f4..d61707e729c4077e85d2b571e4a4707fa171c61e 100644 (file)
@@ -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)),           \