diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2006-10-21 07:28:07 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2006-10-21 07:28:07 +0000 |
commit | e0f2cacd511879bac224355f86b9bfdfbf44f103 (patch) | |
tree | 199e7e6a8e1423a641314640e7e3dcad306e8b14 /usr.sbin | |
parent | a86348164f1ba700723803506652f4f2b00e1bb6 (diff) |
when ntp_sendmsg fails, reset trustlevel to TRUSTLEVEL_PATHETIC
From: amandal@entrisphere.com
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ntpd/client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/client.c b/usr.sbin/ntpd/client.c index de407a69a84..896caecbcb1 100644 --- a/usr.sbin/ntpd/client.c +++ b/usr.sbin/ntpd/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.71 2006/10/21 07:18:57 henning Exp $ */ +/* $OpenBSD: client.c,v 1.72 2006/10/21 07:28:06 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -166,6 +166,7 @@ client_query(struct ntp_peer *p) if (ntp_sendmsg(p->query->fd, NULL, &p->query->msg, NTP_MSGSIZE_NOAUTH, 0) == -1) { set_next(p, INTERVAL_QUERY_PATHETIC); + p->trustlevel = TRUSTLEVEL_PATHETIC; return (-1); } |