Curl_resolv: fix comment. 'entry' argument is not optional

Reported-by: Joshua Rogers
Closes #18979
This commit is contained in:
Daniel Stenberg 2025-10-09 17:17:31 +02:00
parent 2c6505e0ef
commit 435da1f849
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -819,9 +819,9 @@ static CURLcode store_negative_resolve(struct Curl_easy *data,
/*
* Curl_resolv() is the main name resolve function within libcurl. It resolves
* a name and returns a pointer to the entry in the 'entry' argument (if one
* is provided). This function might return immediately if we are using asynch
* resolves. See the return codes.
* a name and returns a pointer to the entry in the 'entry' argument. This
* function might return immediately if we are using asynch resolves. See the
* return codes.
*
* The cache entry we return will get its 'inuse' counter increased when this
* function is used. You MUST call Curl_resolv_unlink() later (when you are