mirror of
https://github.com/curl/curl.git
synced 2026-08-26 05:43:31 +03:00
curlx_inet_pton: drop setting errno on error
Follow-up to bb406386d9 #22229
Closes #22607
This commit is contained in:
parent
bb406386d9
commit
a01a24deaf
1 changed files with 0 additions and 5 deletions
|
|
@ -196,10 +196,6 @@ static int inet_pton6(const char *src, unsigned char *dst)
|
||||||
* 0 if the address was not valid (`dst' is untouched in this case)
|
* 0 if the address was not valid (`dst' is untouched in this case)
|
||||||
* -1 if some other error occurred (`dst' is untouched in this case, too)
|
* -1 if some other error occurred (`dst' is untouched in this case, too)
|
||||||
*
|
*
|
||||||
* On Windows we store the error in the thread errno, not in the Winsock error
|
|
||||||
* code. This is to avoid losing the actual last Winsock error. When this
|
|
||||||
* function returns NULL, check errno not SOCKERRNO.
|
|
||||||
*
|
|
||||||
* author:
|
* author:
|
||||||
* Paul Vixie, 1996.
|
* Paul Vixie, 1996.
|
||||||
*/
|
*/
|
||||||
|
|
@ -211,7 +207,6 @@ int curlx_inet_pton(int af, const char *src, void *dst)
|
||||||
case AF_INET6:
|
case AF_INET6:
|
||||||
return inet_pton6(src, (unsigned char *)dst);
|
return inet_pton6(src, (unsigned char *)dst);
|
||||||
default:
|
default:
|
||||||
errno = SOCKEAFNOSUPPORT;
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
/* NOTREACHED */
|
/* NOTREACHED */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue