]> granicus.if.org Git - curl/commit
url: fix dangling conn->data pointer
authorDaniel Stenberg <daniel@haxx.se>
Wed, 20 Jun 2018 21:00:36 +0000 (23:00 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 21 Jun 2018 07:44:04 +0000 (09:44 +0200)
commit2c15693a3c355d8296a1828123a864397296460b
tree4c63ede95b6ad7ee2924464ba5a27a5314c55736
parentdfb873e308eb19ee31064bb2a398f7da7b58873c
url: fix dangling conn->data pointer

By masking sure to use the *current* easy handle with extracted
connections from the cache, and make sure to NULLify the ->data pointer
when the connection is put into the cache to make this mistake easier to
detect in the future.

Reported-by: Will Dietz
Fixes #2669
Closes #2672
lib/conncache.c
lib/connect.c
lib/url.c