From 46904800ecf8622404e74ecf50c802c3238f1325 Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Fri, 23 Apr 1999 23:47:51 +0000 Subject: [PATCH] - Reference siaddr from state structure in ack_lease, since raw packet hasn't been instantiated yet. --- server/dhcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); } } -- 2.47.3