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:
Stefan Eissing 2026-02-17 09:50:25 +01:00 committed by Viktor Szakats
parent 36c2c7626f
commit f1c9d5e484
No known key found for this signature in database
7 changed files with 47 additions and 0 deletions

View file

@ -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
{