From: Ted Lemon Date: Sat, 17 Feb 2001 21:17:25 +0000 (+0000) Subject: Apply a fix provided by Takeshi Hagiwara for a long-standing Sunos 4 bug. X-Git-Tag: V3-BETA-2-PATCH-18~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7980a66ed5f0f3167f0e905dfa80d32554bc66f6;p=thirdparty%2Fdhcp.git Apply a fix provided by Takeshi Hagiwara for a long-standing Sunos 4 bug. --- diff --git a/common/nit.c b/common/nit.c index 003ebe743..59197f2a4 100644 --- a/common/nit.c +++ b/common/nit.c @@ -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... */