]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove assertion
authorAlan T. DeKok <aland@freeradius.org>
Sun, 17 Sep 2023 13:57:38 +0000 (09:57 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 17 Sep 2023 13:57:38 +0000 (09:57 -0400)
memdup_shallow() is sometimes called with non-talloc'd memory

in some cases the calls are wrong, and this causes a later assert
in the verify functions.  In other cases, the calls are correct.

src/lib/util/value.c

index 175d1dae63909a775a4084b9dc67d731f3c8c768..5ff79618dfdaa6aedef22895704a6e0e53e96458 100644 (file)
@@ -4366,7 +4366,6 @@ void fr_value_box_memdup_shallow(fr_value_box_t *dst, fr_dict_attr_t const *enum
                                 uint8_t const *src, size_t len, bool tainted)
 {
        fr_value_box_init(dst, FR_TYPE_OCTETS, enumv, tainted);
-       (void) talloc_get_name(src);
        dst->vb_octets = src;
        dst->vb_length = len;
 }