This fixes an issue causing transmission-daemon to crash and was introduced with curl 8.9.1 as discussed here. This patch from upstream fixes the issue.