]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
return OOM on oom
authorAlan T. DeKok <aland@freeradius.org>
Sun, 10 Sep 2023 14:07:05 +0000 (10:07 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 10 Sep 2023 14:07:05 +0000 (10:07 -0400)
src/lib/util/struct.c

index 0a089bcfc2a72bec76caec34a1584021da03f8e1..0a830750d93a4f5212bcfbca8152121ef7223cd0 100644 (file)
@@ -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) {