diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-08-10 19:17:11 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-08-10 19:17:11 +0000 |
commit | f90d36e85ce42f94a9953004ab2d596bcd2b5984 (patch) | |
tree | a5debaf1f4de2ccd8ff259cb1451a46c709a2cf5 /usr.sbin | |
parent | 0f27e268b447e0d8a70a6051b8fc2315c6d8188c (diff) |
wrong sizeof; Brian Poole <raj@cerias.purdue.edu>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ntpd/ntp_msg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/ntp_msg.c b/usr.sbin/ntpd/ntp_msg.c index f96edb01ad2..3217cfc977a 100644 --- a/usr.sbin/ntpd/ntp_msg.c +++ b/usr.sbin/ntpd/ntp_msg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntp_msg.c,v 1.4 2004/07/11 03:05:50 dtucker Exp $ */ +/* $OpenBSD: ntp_msg.c,v 1.5 2004/08/10 19:17:10 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -76,7 +76,7 @@ ntp_getmsg(char *p, ssize_t len, struct ntp_msg *msg) if (auth) { memcpy(&msg->keyid, p, sizeof(msg->keyid)); - p += sizeof(msg->refid); + p += sizeof(msg->keyid); for (i = 0; i < NTP_DIGESTSIZE; i++) { memcpy(&msg->digest[i], p, sizeof(msg->digest[i])); p += sizeof(msg->digest[i]); |