diff --git a/lib/curlx/inet_ntop.c b/lib/curlx/inet_ntop.c index 62a1a84c59..751266dbbc 100644 --- a/lib/curlx/inet_ntop.c +++ b/lib/curlx/inet_ntop.c @@ -197,8 +197,8 @@ static char *inet_ntop6(const unsigned char *src, char *dst, size_t size, * Convert a network format address to presentation format. * * Returns pointer to presentation format address (`buf'). - * Returns NULL on error and errno set with the specific - * error, SOCKEAFNOSUPPORT or SOCKEINVAL. + * Returns NULL on error and sockerr set (if not NULL) with the specific error, + * SOCKEAFNOSUPPORT or SOCKEINVAL. */ char *curlx_inet_ntop(int af, const void *src, char *buf, size_t size, int *sockerr)