Skip to content

Commit bc275f1

Browse files
committed
Don't use strlen in talloced buffers
1 parent 486b55a commit bc275f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modules/rlm_rest/rlm_rest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ static int rest_uri_part_escape(fr_value_box_t *vb, UNUSED void *uctx)
360360
}
361361

362362
str = talloc_typed_strdup(vb, escaped);
363-
fr_value_box_strdup_shallow_replace(vb, str, strlen(str));
363+
fr_value_box_strdup_shallow_replace(vb, str, talloc_strlen(str));
364364

365365
curl_free(escaped);
366366

0 commit comments

Comments
 (0)