]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove unneeded code
authorAlan T. DeKok <aland@freeradius.org>
Mon, 12 Aug 2024 01:13:18 +0000 (21:13 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 12 Aug 2024 01:13:18 +0000 (21:13 -0400)
src/modules/rlm_radius/rlm_radius_udp.c

index f76733be61b2b38a8e67ae76d82dc1e02dcc0be3..a686f5b29e8013ec677be8294278ac87be6878a0 100644 (file)
@@ -1307,13 +1307,6 @@ static int encode(rlm_radius_udp_t const *inst, request_t *request, udp_request_
                fr_pair_append(&u->extra, vp);
        }
 
-       /*
-        *      Update the packet header based on the new attributes.
-        */
-       u->packet[2] = (packet_len >> 8) & 0xff;
-       u->packet[3] = packet_len & 0xff;
-       u->packet_len = packet_len;
-
        /*
         *      Ensure that we update the Acct-Delay-Time based on the
         *      time difference between now, and when we originally