From: Alan T. DeKok Date: Sun, 17 Jan 2021 15:44:00 +0000 (-0500) Subject: clear out data structures that we're using X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3fabb5f2369784394bcdb00006fcfba53353d496;p=thirdparty%2Ffreeradius-server.git clear out data structures that we're using --- diff --git a/src/protocols/radius/base.c b/src/protocols/radius/base.c index 457e2345945..cae25cf379b 100644 --- a/src/protocols/radius/base.c +++ b/src/protocols/radius/base.c @@ -1046,6 +1046,7 @@ ssize_t fr_radius_decode(TALLOC_CTX *ctx, uint8_t const *packet, size_t packet_l uint8_t const *attr, *end; fr_radius_ctx_t packet_ctx; + memset(&packet_ctx, 0, sizeof(packet_ctx)); packet_ctx.tmp_ctx = talloc_init_const("tmp"); packet_ctx.secret = secret; memcpy(packet_ctx.vector, original ? original + 4 : packet + 4, sizeof(packet_ctx.vector));