Don't update the leap and stratum used in source selection if they
indicate an unsynchronized source.
Fixes: 2582be8754ab ("sources: separate update of leap status")
inst->tx_count = 0;
SRC_UpdateReachability(inst->source, synced_packet);
- SRC_UpdateStatus(inst->source, MAX(message->stratum, inst->min_stratum), pkt_leap);
+ if (synced_packet)
+ SRC_UpdateStatus(inst->source, MAX(message->stratum, inst->min_stratum), pkt_leap);
if (good_packet) {
/* Adjust the polling interval, accumulate the sample, etc. */