setopt: allow CURLOPT_INTERFACE to be set to NULL

Ref: https://github.com/curl/curl/discussions/14299#discussioncomment-10393909
Regression from 3060557af7 (shipped in 8.9.0)

Closes #14629
This commit is contained in:
Daniel Stenberg 2024-08-21 11:07:06 +02:00
parent 3065f106e3
commit b0b4b481b5
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 19 additions and 21 deletions

View file

@ -57,7 +57,7 @@ struct Curl_sockaddr_ex {
/*
* Parse interface option, and return the interface name and the host part.
*/
CURLcode Curl_parse_interface(const char *input, size_t len,
CURLcode Curl_parse_interface(const char *input,
char **dev, char **iface, char **host);
/*