← Commit list

a782867c9f

Stefan Eissing
Stefan Eissing
2025-09-10
FAILED Duration: 149s

Subject

curl_easy_getinfo: error code on NULL arg

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/getinfo.c+2 -1
@@ -621,7 +621,7 @@ CURLcode Curl_getinfo(struct Curl_easy *data, CURLINFO info, ...)
struct curl_slist **param_slistp = NULL;
curl_socket_t *param_socketp = NULL;
int type;
- CURLcode result = CURLE_UNKNOWN_OPTION;
+ CURLcode result = CURLE_BAD_FUNCTION_ARGUMENT;
if(!data)
return CURLE_BAD_FUNCTION_ARGUMENT;
@@ -661,6 +661,7 @@ CURLcode Curl_getinfo(struct Curl_easy *data, CURLINFO info, ...)
result = getinfo_socket(data, info, param_socketp);
break;
default:
+ result = CURLE_UNKNOWN_OPTION;
break;
}