]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove last hack
authorAlan T. DeKok <aland@freeradius.org>
Mon, 4 Mar 2013 19:40:25 +0000 (14:40 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 4 Mar 2013 19:40:25 +0000 (14:40 -0500)
src/lib/dhcp.c

index 30a489965d9e20eacbf77c028fa66641e5227e16..05e3ec1f2507130affb4172dec163fe9b2617fdc 100644 (file)
@@ -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);