summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-07-06 19:06:44 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-07-06 19:06:44 +0000
commit76fcae7351c33933665cd6e5a116b67995ffed51 (patch)
tree60f1125d223ffdcf00b9c62a96cb79afbab2e155 /usr.sbin
parent35c31cefd7bbb3e404dd3efb0d8c8fe1e602f4df (diff)
when we received a apcket with incorrect cookie log from whom as well
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ntpd/client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/client.c b/usr.sbin/ntpd/client.c
index d903f02c532..70560973270 100644
--- a/usr.sbin/ntpd/client.c
+++ b/usr.sbin/ntpd/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.9 2004/07/06 18:45:29 jason Exp $ */
+/* $OpenBSD: client.c,v 1.10 2004/07/06 19:06:43 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -114,7 +114,8 @@ client_dispatch(struct ntp_peer *p)
if (msg.orgtime.int_part != p->query->msg.xmttime.int_part ||
msg.orgtime.fraction != p->query->msg.xmttime.fraction) {
- log_warn("received packet without correct cookie, discarding");
+ log_warnx("received packet from %s without correct cookie, "
+ "discarding", log_sockaddr((struct sockaddr *)&fsa));
return (0);
}