Fix inet_pton4

This commit is contained in:
jarulo 2018-05-29 20:48:30 +02:00
parent deab92d486
commit 0e1d06b119

View File

@ -829,7 +829,7 @@ static int inet_pton4(const char *src, void *dst) {
size_t numBytes; size_t numBytes;
int ret = _socketInetAtonDetail(&base, &numBytes, src, (struct in_addr *)dst); int ret = _socketInetAtonDetail(&base, &numBytes, src, (struct in_addr *)dst);
return (ret == 1 && base == 10 && numBytes == 4) ? 1 : 0; return (ret == 1 && base == 10 && numBytes == 3) ? 1 : 0;
} }
/* Copyright (c) 1996 by Internet Software Consortium. /* Copyright (c) 1996 by Internet Software Consortium.