timedate: increment reference count of sd_bus_message
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 21 Jul 2018 14:07:53 +0000 (23:07 +0900)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 20 Sep 2018 22:47:19 +0000 (23:47 +0100)
commitba02e8d5496133fd2bfdd250f33fe58d505dc744
tree4282a54e2fc4d9710ef6d4b920c0e4d10df3a92e
parent24b5b04fdf031c2301cbce14aecfbfd9888a0283
timedate: increment reference count of sd_bus_message

The commit 5d280742b645a69a19e7f9131adc0c95f5c7fa07 introduces a
barrier to suppress calling context_update_ntp_status() multiple times.
However, it just stores the address of sd_bus_message object. So,
when an address is reused on the subsequent message, then the status
of NTP clients are not updated.

This makes the stored message object is referenced by the context
object. So, the subsequent message is on cirtainly different address.

(cherry picked from commit 2770af85ac04fd14af2f6bcdf4d3967ed6f2e36f)

Gbp-Pq: Name timedate-increment-reference-count-of-sd_bus_message.patch
src/timedate/timedated.c