Fix inet_pton4

This commit is contained in:
jarulo 2018-05-29 20:48:30 +02:00 committed by fincs
parent ad4af954c2
commit 8b793729fc

View File

@ -830,7 +830,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.