windows build fix

pull/522/head
bradh352 2 years ago
parent 4b896d624c
commit 424012216c
  1. 4
      src/lib/inet_net_pton.c

@ -314,8 +314,8 @@ ares_inet_pton6(const char *src, unsigned char *dst)
continue; continue;
} }
if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) &&
ares_inet_net_pton_ipv4(curtok, tp, INADDRSZ) > 0) { ares_inet_net_pton_ipv4(curtok, tp, NS_INADDRSZ) > 0) {
tp += INADDRSZ; tp += NS_INADDRSZ;
saw_xdigit = 0; saw_xdigit = 0;
count_xdigit = 0; count_xdigit = 0;
break; /* '\0' was seen by inet_pton4(). */ break; /* '\0' was seen by inet_pton4(). */

Loading…
Cancel
Save