]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
value: String is already in the correct ctx, don't increase the ref count
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 2 Sep 2020 19:13:45 +0000 (15:13 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 2 Sep 2020 19:13:45 +0000 (15:13 -0400)
src/lib/util/value.c

index 69ed3b8d39694ebb9badf5eec304a7ec258306ec..15a8477f2c34bf2e56b5faa4688501f30d044051 100644 (file)
@@ -1740,7 +1740,7 @@ static inline int fr_value_box_cast_to_strvalue(TALLOC_CTX *ctx, fr_value_box_t
                str = fr_value_box_asprint(ctx, src, '\0');
                if (unlikely(!str)) return -1;
 
-               return fr_value_box_bstrdup_buffer_shallow(ctx, dst, dst_enumv, str, src->tainted);
+               return fr_value_box_bstrdup_buffer_shallow(NULL, dst, dst_enumv, str, src->tainted);
        }
        }
 }