]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fix wrong assertion
authorAlan T. DeKok <aland@freeradius.org>
Mon, 10 Mar 2025 02:24:50 +0000 (22:24 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 10 Mar 2025 02:24:50 +0000 (22:24 -0400)
src/lib/server/tmpl_tokenize.c

index 097ee7d0d61d8b365a131aea9c67aca0b421a0cc..a3433b09f950c24e9dcf954107a9c1f986b3f569 100644 (file)
@@ -3665,7 +3665,7 @@ tmpl_t *tmpl_copy(TALLOC_CTX *ctx, tmpl_t const *in)
         *      We add an assertion here because nothing allocates the head, and we need it.
         */
        } else if (tmpl_contains_xlat(vpt)) {
-               fr_assert(vpt->data.xlat.ex != NULL);
+               fr_assert(in->data.xlat.ex != NULL);
 
                if (unlikely(xlat_copy(vpt, vpt->data.xlat.ex, in->data.xlat.ex) < 0)) goto error;