]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
urlapi: remove unused definition of HOST_BAD
authormartinevsky <max@martinevsky.ru>
Fri, 19 Jul 2024 13:51:13 +0000 (16:51 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 19 Jul 2024 16:17:53 +0000 (18:17 +0200)
Closes #14235

lib/urlapi.c

index c51e0bd3778e7b656c84916638f2844153d08360..b71be38470160232207cc90e3d6d35ecde189170 100644 (file)
@@ -665,7 +665,6 @@ static CURLUcode hostname_check(struct Curl_URL *u, char *hostname,
  */
 
 #define HOST_ERROR   -1 /* out of memory */
-#define HOST_BAD     -2 /* bad IPv4 address */
 
 #define HOST_NAME    1
 #define HOST_IPV4    2
@@ -836,7 +835,6 @@ static CURLUcode parse_authority(struct Curl_URL *u,
   case HOST_ERROR:
     uc = CURLUE_OUT_OF_MEMORY;
     break;
-  case HOST_BAD:
   default:
     uc = CURLUE_BAD_HOSTNAME; /* Bad IPv4 address even */
     break;