]> git.ipfire.org Git - thirdparty/curl.git/commit
vtls: fix memory corruption
authorJay Satiro <raysatiro@yahoo.com>
Wed, 6 Sep 2017 21:39:21 +0000 (23:39 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 7 Sep 2017 14:06:50 +0000 (16:06 +0200)
commit955c21939e58c8ba59877fbb7d628445143241d1
treeb6f36bcce5b5d22f5bd7c3083f22e5ca7de207f7
parent4bb80d532e73045b06d23228b3a501d9f7c93acf
vtls: fix memory corruption

Ever since 70f1db321 (vtls: encapsulate SSL backend-specific data,
2017-07-28), the code handling HTTPS proxies was broken because the
pointer to the SSL backend data was not swapped between
conn->ssl[sockindex] and conn->proxy_ssl[sockindex] as intended, but
instead set to NULL (causing segmentation faults).

[jes: provided the commit message, tested and verified the patch]

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
lib/vtls/vtls.c