Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/dhcp/server fix an off by 1 error that prevents boo...



details:   https://anonhg.NetBSD.org/src/rev/57f59f93087a
branches:  trunk
changeset: 485911:57f59f93087a
user:      matt <matt%NetBSD.org@localhost>
date:      Mon May 08 19:25:10 2000 +0000

description:
fix an off by 1 error that prevents bootp from working.

diffstat:

 usr.sbin/dhcp/server/bootp.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 47d0a94182f9 -r 57f59f93087a usr.sbin/dhcp/server/bootp.c
--- a/usr.sbin/dhcp/server/bootp.c      Mon May 08 19:09:49 2000 +0000
+++ b/usr.sbin/dhcp/server/bootp.c      Mon May 08 19:25:10 2000 +0000
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: bootp.c,v 1.10 2000/04/22 08:18:17 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: bootp.c,v 1.11 2000/05/08 19:25:10 matt Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -313,7 +313,7 @@
        /* 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;
 



Home | Main Index | Thread Index | Old Index