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)
committerMichael Biebl <biebl@debian.org>
Tue, 25 Sep 2018 14:11:12 +0000 (15:11 +0100)
commite8270c10e48ea101ac6099608f724bcd451a58cd
tree75403b9cfc00f0961d517e9941f14118e92b7332
parent9e3d8995b227c81809baabaf4e9c80382128a007
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