diff --git a/lib/net/lib_inetpton.c b/lib/net/lib_inetpton.c index 281d03d404..b4b97f2aed 100644 --- a/lib/net/lib_inetpton.c +++ b/lib/net/lib_inetpton.c @@ -177,7 +177,7 @@ int inet_pton(int af, FAR const char *src, FAR void *dst) /* Return 1 if the conversion succeeds */ - return 0; + return 1; } ndots++; @@ -307,7 +307,7 @@ int inet_pton(int af, FAR const char *src, FAR void *dst) /* Return 1 if the conversion succeeds */ - return 0; + return 1; } } else if ((ch >= '0' && ch <= '9') ||