]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
typo: don't NUL terminate octet strings
authorAlan T. DeKok <aland@freeradius.org>
Sat, 20 Nov 2021 17:52:39 +0000 (12:52 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 20 Nov 2021 17:52:39 +0000 (12:52 -0500)
src/lib/util/calc.c

index a36d9836b44a278649778d006610f3c3021a9a7c..a6af2dea811c0e38b55ef970374efb2fc68ea674 100644 (file)
@@ -398,7 +398,6 @@ static int calc_octets(TALLOC_CTX *ctx, fr_value_box_t *dst, fr_value_box_t cons
                if (!buf) goto oom;
 
                memcpy(buf, a->vb_strvalue, len);
-               buf[len] = '\0';
 
                fr_value_box_clear_value(dst);
                fr_value_box_memdup_shallow(dst, dst->enumv, buf, len, a->tainted | b->tainted);