]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Apply a fix provided by Takeshi Hagiwara for a long-standing Sunos 4 bug.
authorTed Lemon <source@isc.org>
Sat, 17 Feb 2001 21:17:25 +0000 (21:17 +0000)
committerTed Lemon <source@isc.org>
Sat, 17 Feb 2001 21:17:25 +0000 (21:17 +0000)
common/nit.c

index 003ebe743834c1c53d8dc34c737f92137537a7e1..59197f2a46f38b61fc30427b92b94195152686cf 100644 (file)
@@ -44,7 +44,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: nit.c,v 1.33 2000/09/20 00:05:24 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: nit.c,v 1.34 2001/02/17 21:17:25 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -314,7 +314,8 @@ ssize_t send_packet (interface, packet, raw, len, from, to, hto)
 
        /* Start with the sockaddr struct... */
        junk = (struct sockaddr *)&hh [0];
-       hbufp = ((unsigned char *)&junk -> sa_data [0]) - &buf [0];
+       hbufp = (((unsigned char *)&junk -> sa_data [0]) -
+                (unsigned char *)&hh[0]);
        ibufp = 0;
 
        /* Assemble the headers... */