[curl/curl] 04cc27: http: reset the header buffer when sending the req...

Daniel Stenberg <[email protected]> Thu, 06 May 2021 14:29:59 -0700
Newsgroups gmane.comp.web.curl.cvs
Message-ID <curl/curl/push/refs/heads/master/[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/curl/curl
  Commit: 04cc27460ea15943873de6dac4983e52e3645756
      https://github.com/curl/curl/commit/04cc27460ea15943873de6dac4983e52e3645756
  Author: Daniel Stenberg <[email protected]>
  Date:   2021-05-06 (Thu, 06 May 2021)

  Changed paths:
    M lib/http.c

  Log Message:
  -----------
  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


_______________________________________________
curl-commits mailing list
[email protected]
https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-commits