mirror of
https://github.com/curl/curl.git
synced 2026-07-23 00:37:23 +03:00
easy: reset errorbuf on eyeballing success
Any failf() that fill the errorbuf need to be forgotten once happy eyeballing finds a succssful winner. Because the errorbuf, once set, is not overwritten with future error information. Adds test_05_05 to verify. Reported-by: Tim Friedrich Brüggemann Fixes #20608 Closes #20613
This commit is contained in:
parent
36c2c7626f
commit
f1c9d5e484
7 changed files with 47 additions and 0 deletions
|
|
@ -222,6 +222,8 @@ static CURLcode baller_connected(struct Curl_cfilter *cf,
|
|||
/* install the winning filter below this one. */
|
||||
cf->next = winner->cf;
|
||||
winner->cf = NULL;
|
||||
/* whatever errors where reported by ballers, clear our errorbuf */
|
||||
Curl_reset_fail(data);
|
||||
|
||||
#ifdef USE_NGHTTP2
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue