]> git.ipfire.org Git - thirdparty/systemd.git/commit
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)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 26 Jul 2018 03:13:35 +0000 (12:13 +0900)
commit2770af85ac04fd14af2f6bcdf4d3967ed6f2e36f
treeb8e3fb69792167ac09e808fadd9e3c165f24c159
parentf11fc3fa734059ca9e4afa84f76e3ae4595ce9cc
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.
src/timedate/timedated.c