From: Ted Lemon Date: Fri, 23 Apr 1999 23:47:51 +0000 (+0000) Subject: - Reference siaddr from state structure in ack_lease, since raw packet X-Git-Tag: V3-ALPHA-19990423~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=46904800ecf8622404e74ecf50c802c3238f1325;p=thirdparty%2Fdhcp.git - Reference siaddr from state structure in ack_lease, since raw packet hasn't been instantiated yet. --- diff --git a/server/dhcp.c b/server/dhcp.c index 278a70252..a850ff126 100644 --- a/server/dhcp.c +++ b/server/dhcp.c @@ -22,7 +22,7 @@ #ifndef lint static char copyright[] = -"$Id: dhcp.c,v 1.87 1999/04/23 23:17:52 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$Id: dhcp.c,v 1.88 1999/04/23 23:47:51 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -1322,7 +1322,7 @@ void ack_lease (packet, lease, offer, when, msg) /* If there was more than one answer, take the first. */ if (d1.len >= 4 && d1.data) - memcpy (&raw.siaddr, d1.data, 4); + memcpy (&state -> siaddr, d1.data, 4); data_string_forget (&d1, "ack_lease"); } }