From f90d36e85ce42f94a9953004ab2d596bcd2b5984 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Tue, 10 Aug 2004 19:17:11 +0000 Subject: wrong sizeof; Brian Poole --- usr.sbin/ntpd/ntp_msg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ntpd/ntp_msg.c') 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 @@ -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]); -- cgit v1.2.3