← Commit list

ff300ac4aa

Daniel Stenberg
Daniel Stenberg
2026-06-01
SUCCESS Duration: 433s

Subject

setopt: defref the old referer when setting a new

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/setopt.c+1 -0
@@ -2024,6 +2024,7 @@ static CURLcode setopt_cptr(struct Curl_easy *data, CURLoption option,
/*
* String to set in the HTTP Referer: field.
*/
+ Curl_bufref_free(&data->state.referer);
result = Curl_setstropt(&s->str[STRING_SET_REFERER], ptr);
break;