curl_gssapi: make sure Curl_gss_log_error() has an initialized buffer

Reported-by: Stanislav Fort (Aisle Research)

Closes #19802
This commit is contained in:
Daniel Stenberg 2025-12-02 09:53:00 +01:00
parent 8dedcce7a3
commit c1c3487d79
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -428,7 +428,7 @@ static size_t display_gss_error(OM_uint32 status, int type,
void Curl_gss_log_error(struct Curl_easy *data, const char *prefix,
OM_uint32 major, OM_uint32 minor)
{
char buf[GSS_LOG_BUFFER_LEN];
char buf[GSS_LOG_BUFFER_LEN] = "";
size_t len = 0;
if(major != GSS_S_FAILURE)