diff options
author | otto <otto@openbsd.org> | 2019-07-10 05:53:37 +0000 |
---|---|---|
committer | otto <otto@openbsd.org> | 2019-07-10 05:53:37 +0000 |
commit | f64e43702637d4183364364662b382721e33c1af (patch) | |
tree | ab835dd9f6c43ff4d0dc38261e29d0af4723196c /usr.sbin/ntpd | |
parent | +ixl (which was used to debug problems on T4-1) (diff) | |
download | wireguard-openbsd-f64e43702637d4183364364662b382721e33c1af.tar.xz wireguard-openbsd-f64e43702637d4183364364662b382721e33c1af.zip |
fix printing when the pool is specified as an IP address; reported by and
ok deraadt@
Diffstat (limited to 'usr.sbin/ntpd')
-rw-r--r-- | usr.sbin/ntpd/control.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/control.c b/usr.sbin/ntpd/control.c index db27af59d06..7c1f0e1c852 100644 --- a/usr.sbin/ntpd/control.c +++ b/usr.sbin/ntpd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.16 2019/07/07 19:17:40 otto Exp $ */ +/* $OpenBSD: control.c,v 1.17 2019/07/10 05:53:37 otto Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -353,7 +353,7 @@ build_show_peer(struct ctl_show_peer *cp, struct ntp_peer *p) if (p->addr_head.pool) pool = "from pool "; - if (0 != strcmp(a, p->addr_head.name)) + if (0 != strcmp(a, p->addr_head.name) || p->addr_head.pool) addr_head_name = p->addr_head.name; snprintf(cp->peer_desc, sizeof(cp->peer_desc), |