mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 06:25:06 -05:00
Don't send packet in last auto_offline transmit timeout
This commit is contained in:
15
ntp_core.c
15
ntp_core.c
@@ -599,7 +599,6 @@ static void
|
|||||||
transmit_timeout(void *arg)
|
transmit_timeout(void *arg)
|
||||||
{
|
{
|
||||||
NCR_Instance inst = (NCR_Instance) arg;
|
NCR_Instance inst = (NCR_Instance) arg;
|
||||||
NTP_Mode my_mode;
|
|
||||||
double timeout_delay=0.0;
|
double timeout_delay=0.0;
|
||||||
int do_timer = 0;
|
int do_timer = 0;
|
||||||
int do_auth;
|
int do_auth;
|
||||||
@@ -653,19 +652,19 @@ transmit_timeout(void *arg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my_mode = inst->mode;
|
|
||||||
|
|
||||||
if (inst->do_auth && KEY_KeyKnown(inst->auth_key_id)) {
|
if (inst->do_auth && KEY_KeyKnown(inst->auth_key_id)) {
|
||||||
do_auth = 1;
|
do_auth = 1;
|
||||||
} else {
|
} else {
|
||||||
do_auth = 0;
|
do_auth = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
transmit_packet(my_mode, inst->local_poll,
|
if (inst->opmode != MD_OFFLINE) {
|
||||||
do_auth, inst->auth_key_id,
|
transmit_packet(inst->mode, inst->local_poll,
|
||||||
&inst->remote_orig,
|
do_auth, inst->auth_key_id,
|
||||||
&inst->local_rx, &inst->local_tx, &inst->local_ntp_tx,
|
&inst->remote_orig,
|
||||||
&inst->remote_addr);
|
&inst->local_rx, &inst->local_tx, &inst->local_ntp_tx,
|
||||||
|
&inst->remote_addr);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
switch (inst->opmode) {
|
switch (inst->opmode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user