diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2022-11-27 13:19:01 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2022-11-27 13:19:01 +0000 |
commit | 218a1d0c50fb2221ec75992501929562b656129a (patch) | |
tree | a2c04e9cc9179d500301a3ecb6c9eeb0059f21bc /usr.sbin/ntpd/ntp.c | |
parent | 4350ef74785b15ebb87cc161f06d9a3fe4c798e4 (diff) |
Once we are synced, we can validate the certificate in the standard way.
ok tb@
Diffstat (limited to 'usr.sbin/ntpd/ntp.c')
-rw-r--r-- | usr.sbin/ntpd/ntp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c index 4112ceb4b66..8b3c26f443a 100644 --- a/usr.sbin/ntpd/ntp.c +++ b/usr.sbin/ntpd/ntp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntp.c,v 1.169 2022/03/24 07:37:19 otto Exp $ */ +/* $OpenBSD: ntp.c,v 1.170 2022/11/27 13:19:00 otto Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -327,7 +327,7 @@ ntp_main(struct ntpd_conf *nconf, struct passwd *pw, int argc, char **argv) priv_settime(0, "no valid peers configured"); TAILQ_FOREACH(cstr, &conf->constraints, entry) { - if (constraint_query(cstr) == -1) + if (constraint_query(cstr, conf->status.synced) == -1) continue; } |