mirror of
https://github.com/curl/curl.git
synced 2026-04-14 21:31:42 +03:00
headers: clear (possibly) lingering pointer in init
The "prevhead" pointer is used for the headers storage but was not cleared correctly in init, which made it possible to act up when a handle is reused. Reported-by: Steve Herrell Fixes #11101 Closes #11103
This commit is contained in:
parent
5338a41056
commit
cd1c611b24
1 changed files with 1 additions and 0 deletions
|
|
@ -336,6 +336,7 @@ CURLcode Curl_headers_push(struct Curl_easy *data, const char *header,
|
|||
static void headers_init(struct Curl_easy *data)
|
||||
{
|
||||
Curl_llist_init(&data->state.httphdrs, NULL);
|
||||
data->state.prevhead = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue