diff options
-rw-r--r-- | nuttx/lib/net/lib_inetpton.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/lib/net/lib_inetpton.c b/nuttx/lib/net/lib_inetpton.c index 281d03d40..b4b97f2ae 100644 --- a/nuttx/lib/net/lib_inetpton.c +++ b/nuttx/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') || |