]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix an oversight in the htype+haddr->hbuf conversion
authorTed Lemon <source@isc.org>
Wed, 20 Sep 2000 00:06:04 +0000 (00:06 +0000)
committerTed Lemon <source@isc.org>
Wed, 20 Sep 2000 00:06:04 +0000 (00:06 +0000)
server/bootp.c

index 24e45075c116914e474b408fdb8ba7d97803fee5..1afa9098d28027dce53c66d48075281f7b176649 100644 (file)
@@ -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;