From 012c41434c0a4a5c19496e748fa4e3484c8b1fdd Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Wed, 20 Sep 2000 00:06:04 +0000 Subject: [PATCH] Fix an oversight in the htype+haddr->hbuf conversion --- server/bootp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/bootp.c b/server/bootp.c index 24e45075c..1afa9098d 100644 --- a/server/bootp.c +++ b/server/bootp.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: bootp.c,v 1.65 2000/08/28 19:36:08 neild Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: bootp.c,v 1.66 2000/09/20 00:06:04 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -329,7 +329,7 @@ void bootp (packet) /* Set up the hardware destination address... */ hto.hbuf [0] = packet -> raw -> htype; hto.hlen = packet -> raw -> hlen + 1; - memcpy (hto.hbuf, packet -> raw -> chaddr, packet -> raw -> hlen); + memcpy (&hto.hbuf [1], packet -> raw -> chaddr, packet -> raw -> hlen); from = packet -> interface -> primary_address; -- 2.47.3