]> git.ipfire.org Git - thirdparty/curl.git/commit
curl_easy_getinfo: error code on NULL arg
authorStefan Eissing <stefan@eissing.org>
Wed, 10 Sep 2025 09:55:24 +0000 (11:55 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 10 Sep 2025 10:44:25 +0000 (12:44 +0200)
commita782867c9f966b2daeb67a4438bc4c26c6bbd46b
tree1d25f7f979c19af4a2075150b22dd2b2a099153e
parent80ac5fb2ec29203fd9d87d705f72e8cd2afee501
curl_easy_getinfo: error code on NULL arg

When passing an address to curl_easy_getinfo to retrieve a value and the
address is NULL, return CURLE_BAD_FUNCTION_ARGUMENT instead of
CURLE_UNKNOWN_OPTION.

Closes #18512
lib/getinfo.c