]> git.ipfire.org Git - thirdparty/curl.git/commit
http: reset the header buffer when sending the request
authorDaniel Stenberg <daniel@haxx.se>
Thu, 6 May 2021 07:35:18 +0000 (09:35 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 6 May 2021 21:28:45 +0000 (23:28 +0200)
commit04cc27460ea15943873de6dac4983e52e3645756
treeb654635925932b4d589ab9f755224df35c42f6ec
parente2497c73f9617c5ef9a74d35de422414178ba758
http: reset the header buffer when sending the request

A reused transfer handle could otherwise reuse the previous leftover
buffer and havoc would ensue.

Reported-by: sergio-nsk on github
Fixes #7018
Closes #7021
lib/http.c