Good catch!  OK sthen@

On 2022/05/27 02:20, Nathanael Rensen wrote:
> I found the trusted keyword is not respected when using the
> servers directive in ntpd.conf(5):
> 
> servers pool.trusted.local trusted
> 
> Nathanael
> 
> Index: ntp.c
> ===================================================================
> RCS file: /cvs/src/usr.sbin/ntpd/ntp.c,v
> retrieving revision 1.169
> diff -u -p -r1.169 ntp.c
> --- ntp.c     24 Mar 2022 07:37:19 -0000      1.169
> +++ ntp.c     26 May 2022 18:03:49 -0000
> @@ -628,6 +628,7 @@ ntp_dispatch_imsg_dns(void)
>                                           &h->ss), peer->addr_head.name);
>                                       npeer = new_peer();
>                                       npeer->weight = peer->weight;
> +                                     npeer->trusted = peer->trusted;
>                                       npeer->query_addr4 = peer->query_addr4;
>                                       npeer->query_addr6 = peer->query_addr6;
>                                       h->next = NULL;
> 

Reply via email to