]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't abort when decode_value() fails.
authorAlan T. DeKok <aland@freeradius.org>
Thu, 7 Oct 2021 21:56:29 +0000 (17:56 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 7 Oct 2021 22:01:35 +0000 (18:01 -0400)
Instead, just treat the entire struct as being raw

src/lib/util/struct.c

index b74876aa9e737721724ddba0a9a2e65bc8689e79..96ad46ba2a53db7cefceff84b0cf36b4d2bf4bee 100644 (file)
@@ -264,7 +264,7 @@ ssize_t fr_struct_from_network(TALLOC_CTX *ctx, fr_dcursor_t *cursor,
                        slen = decode_value(child_ctx, &child_cursor, fr_dict_by_da(child), child, p, child_length, decode_ctx);
                        if (slen < 0) {
                                FR_PROTO_TRACE("Failed decoding value");
-                               return slen - (p - data);
+                               goto unknown;
                        }
 
                        p += slen;      /* not always the same as child->flags.length */