+---
+* [Bug 3822] ntpd significantly delays first poll of servers specified by name.
+ <hart@ntp.org> Miroslav Lichvar identified regression in 4.2.8p16.
+
---
(4.2.8p16) 2023/05/31 Released by Harlan Stenn <stenn@ntp.org>
u_char maxpoll;
u_int32 ttl;
const char * group;
+ int was_initializing;
} peer_resolved_ctx;
/* Limits */
ctx->hmode = MODE_CLIENT;
ctx->version = NTP_VERSION;
ctx->flags = FLAG_IBURST;
+ ctx->was_initializing = initializing;
ZERO(hints);
hints.ai_family = (u_short)ctx->family;
ctx->ttl = curr_peer->ttl;
ctx->keyid = curr_peer->peerkey;
ctx->group = curr_peer->group;
+ ctx->was_initializing = initializing;
ZERO(hints);
hints.ai_family = ctx->family;
name, fam_spec,
stoa(&peeraddr));
}
+
+ /*
+ * peer_clear needs to know if this association was specified
+ * in the startup configuration file to set the next poll time.
+ */
+ if (ctx->was_initializing) {
+ INSIST(!initializing);
+ initializing = TRUE;
+ }
+
peer_config(
&peeraddr,
NULL,
ctx->ttl,
ctx->keyid,
ctx->group);
+
+ if (ctx->was_initializing) {
+ initializing = FALSE;
+ }
+
break;
}
}