From: Alan T. DeKok Date: Sat, 27 Jan 2024 16:38:20 +0000 (-0500) Subject: use tmp_ctx for decoding, not decode_ctx X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f24a48155cd4fc1290b68e1bb7143cc3ec8bc1c;p=thirdparty%2Ffreeradius-server.git use tmp_ctx for decoding, not decode_ctx --- diff --git a/src/protocols/dhcpv4/decode.c b/src/protocols/dhcpv4/decode.c index bf7ab0e8427..24147840867 100644 --- a/src/protocols/dhcpv4/decode.c +++ b/src/protocols/dhcpv4/decode.c @@ -580,7 +580,7 @@ ssize_t fr_dhcpv4_decode_option(TALLOC_CTX *ctx, fr_pair_list_t *out, fr_dict_attr_t const *da; if (!packet_ctx->buffer) { - packet_ctx->buffer = talloc_array(packet_ctx, uint8_t, data_len); + packet_ctx->buffer = talloc_array(packet_ctx->tmp_ctx, uint8_t, data_len); if (!packet_ctx->buffer) return PAIR_DECODE_OOM; } else if (talloc_array_length(packet_ctx->buffer) < data_len) {