]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't use strlen in talloced buffers developer/arr2036 master
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 7 Nov 2025 01:35:09 +0000 (17:35 -0800)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 7 Nov 2025 01:35:18 +0000 (17:35 -0800)
src/modules/rlm_rest/rlm_rest.c

index b80c264aca40f31878377e26ca4444e80584cc6e..e0837d8b9b0186323d29e4dced280bf2674fa45b 100644 (file)
@@ -360,7 +360,7 @@ static int rest_uri_part_escape(fr_value_box_t *vb, UNUSED void *uctx)
        }
 
        str = talloc_typed_strdup(vb, escaped);
-       fr_value_box_strdup_shallow_replace(vb, str, strlen(str));
+       fr_value_box_strdup_shallow_replace(vb, str, talloc_strlen(str));
 
        curl_free(escaped);