From: Alan T. DeKok Date: Sun, 10 Sep 2023 14:07:05 +0000 (-0400) Subject: return OOM on oom X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dae1349fa07884dc0f0668f2bcd5456aff1181a;p=thirdparty%2Ffreeradius-server.git return OOM on oom --- diff --git a/src/lib/util/struct.c b/src/lib/util/struct.c index 0a089bcfc2a..0a830750d93 100644 --- a/src/lib/util/struct.c +++ b/src/lib/util/struct.c @@ -164,7 +164,7 @@ ssize_t fr_struct_from_network(TALLOC_CTX *ctx, fr_pair_list_t *out, vp = fr_pair_afrom_da(child_ctx, child); if (!vp) { FR_PROTO_TRACE("fr_struct_from_network - failed allocating child VP"); - goto unknown; + return PAIR_DECODE_OOM; } switch (child->type) {