]> git.ipfire.org Git - thirdparty/curl.git/commit
vtls: fix hostname handling in filters
authorStefan Eissing <stefan@eissing.org>
Tue, 17 Jan 2023 10:21:29 +0000 (11:21 +0100)
committerJay Satiro <raysatiro@yahoo.com>
Fri, 20 Jan 2023 05:40:18 +0000 (00:40 -0500)
commitf8da4f2f2d0451dc0a126ae3e5077b4527ccdc86
tree75ad3927d9139316fe7167121663c773bece44a4
parent11708d6f006db0960c8ff6eab2fd9b1d15d7e178
vtls: fix hostname handling in filters

- Copy the hostname and dispname to ssl_connect_data.

Use a copy instead of referencing the `connectdata` instance since this
may get free'ed on connection reuse.

Reported-by: Stefan Talpalaru
Reported-by: sergio-nsk@users.noreply.github.com
Fixes https://github.com/curl/curl/issues/10273
Fixes https://github.com/curl/curl/issues/10309

Closes https://github.com/curl/curl/pull/10310
lib/url.c
lib/vtls/vtls.c
lib/vtls/vtls_int.h