chrony: fix type instances for unreachable sources
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 23 Feb 2017 15:45:46 +0000 (16:45 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 23 Feb 2017 16:48:40 +0000 (17:48 +0100)
commit8cec7f0908f222f5ae811712924bf7e67d6a38a4
tree26467db03ffc239b441ec124b1b52b7767800634
parente02ae075ce9626f64cbc4e61024fa4610c21bcd3
chrony: fix type instances for unreachable sources

When a time source is unreachable, no sourcestats request is made and
the NaN values are pushed with an empty string as the type instance.
Modify chrony_request_source_data() and chrony_request_source_stats()
to share the address of the source, so the address is valid even when
sourcestats is not requested.
src/chrony.c