sd-ndisc: do not print "(null)" in the log message
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 May 2024 15:38:38 +0000 (00:38 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 22 May 2024 20:07:58 +0000 (22:07 +0200)
commita925620f5fc906bfdbef5fb83f852fe355ef1ad2
tree540c7accd7505a936bd949e7fccf2cfdd25827b8
parent6840ecb8ef0a1320a946e2baceae8451aef88a84
sd-ndisc: do not print "(null)" in the log message

If we received RA with no flags set, or with an invalid preference,
previously "(null)" was printed.

Follow-up for 238ed432c347ddf7dde7825feb2672b089583103.

Fixes https://github.com/systemd/systemd/pull/32308#discussion_r1600940289.
src/libsystemd-network/sd-ndisc-router.c
src/libsystemd-network/sd-ndisc.c