From: Alan T. DeKok Date: Mon, 4 Mar 2013 19:40:25 +0000 (-0500) Subject: Remove last hack X-Git-Tag: release_2_2_1~125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac00c8cce54443621f9fae9074236f0de2283fbd;p=thirdparty%2Ffreeradius-server.git Remove last hack --- diff --git a/src/lib/dhcp.c b/src/lib/dhcp.c index 30a489965d9..05e3ec1f250 100644 --- a/src/lib/dhcp.c +++ b/src/lib/dhcp.c @@ -1203,12 +1203,8 @@ int fr_dhcp_encode(RADIUS_PACKET *packet) /* * DHCP-Gateway-IP-Address - * - * It's only sent in client messages. For responses from - * the server, it is always zero. */ - if ((packet->data[0] == 1) && - (vp = pairfind(packet->vps, DHCP2ATTR(266)))) { + if (vp = pairfind(packet->vps, DHCP2ATTR(266))) { lvalue = vp->vp_ipaddr; } else { lvalue = htonl(INADDR_ANY);