]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
pair_afrom_da() already copies the unknown da
authorAlan T. DeKok <aland@freeradius.org>
Sun, 10 Sep 2023 12:40:54 +0000 (08:40 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 10 Sep 2023 12:40:54 +0000 (08:40 -0400)
src/lib/util/pair.c

index 7d09d6c3bf50084272e74f06c387501765599a39..19fe00e0edd4150379dd728159c3019d9da204a3 100644 (file)
@@ -557,17 +557,6 @@ fr_pair_t *fr_pair_copy(TALLOC_CTX *ctx, fr_pair_t const *vp)
 
        n->op = vp->op;
 
-       /*
-        *      Copy the unknown attribute hierarchy
-        */
-       if (n->da->flags.is_unknown) {
-               n->da = fr_dict_unknown_copy(n, n->da);
-               if (!n->da) {
-                       talloc_free(n);
-                       return NULL;
-               }
-       }
-
        /*
         *      Groups are special.
         */