[3.10] main/curl: remediate CVE-2021-22898
Cherry-pick the fix for CVE-2021-22898 from upstream: https://github.com/curl/curl/commit/39ce47f219b09c380b81f89fe54ac586c8db6bde
Cherry-pick the fix for CVE-2021-22898 from upstream: https://github.com/curl/curl/commit/39ce47f219b09c380b81f89fe54ac586c8db6bde