]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
initialize packet_ctx.end
authorAlan T. DeKok <aland@freeradius.org>
Tue, 4 Jan 2022 00:25:15 +0000 (19:25 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 4 Jan 2022 00:26:10 +0000 (19:26 -0500)
src/protocols/radius/packet.c

index d676379df20c1290d27cf295ec7ffef4d7c04b3e..e6a7da53d3378c9532202ffae8eaa26b36d6c35a 100644 (file)
@@ -169,6 +169,7 @@ int fr_radius_packet_decode(TALLOC_CTX *ctx, fr_pair_list_t *out,
        }
 
        packet_ctx.tmp_ctx = talloc(packet, uint8_t);
+       packet_ctx.end = packet->data + packet->data_len;
 
        /*
         *      Extract attribute-value pairs