Browse Source

when we received a apcket with incorrect cookie log from whom as well

OPENBSD_3_6
henning 20 years ago
parent
commit
12fb5f8424
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/usr.sbin/ntpd/client.c

+ 3
- 2
src/usr.sbin/ntpd/client.c View File

@ -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> * 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 || if (msg.orgtime.int_part != p->query->msg.xmttime.int_part ||
msg.orgtime.fraction != p->query->msg.xmttime.fraction) { 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); return (0);
} }


Loading…
Cancel
Save