mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 11:15:07 -05:00
Don't use uninitialized value in receive_packet()
This commit is contained in:
@@ -945,7 +945,7 @@ receive_packet(NTP_Packet *message, struct timeval *now, double now_err, NCR_Ins
|
|||||||
properly (e.g. for the first sample received in a peering
|
properly (e.g. for the first sample received in a peering
|
||||||
connection). */
|
connection). */
|
||||||
theta = delta = epsilon = 0.0;
|
theta = delta = epsilon = 0.0;
|
||||||
|
sample_time = *now;
|
||||||
}
|
}
|
||||||
|
|
||||||
peer_distance = epsilon + 0.5 * fabs(delta);
|
peer_distance = epsilon + 0.5 * fabs(delta);
|
||||||
|
|||||||
Reference in New Issue
Block a user