patch #6765: Supporting new line characters in inet_aton()

This commit is contained in:
goldsimon 2009-04-15 19:06:39 +00:00
parent a55f354687
commit 4f52183a39
2 changed files with 4 additions and 1 deletions

View File

@ -83,6 +83,9 @@ HISTORY
++ Bugfixes:
2009-04-15 Simon Goldschmidt
* inet.c: patch #6765: Supporting new line characters in inet_aton()
2009-04-15 Simon Goldschmidt
* dhcp.c: patch #6764: DHCP rebind and renew did not send hostnam option;
Converted constant OPTION_MAX_MSG_SIZE to netif->mtu, check if netif->mtu

View File

@ -134,7 +134,7 @@ inet_aton(const char *cp, struct in_addr *addr)
/*
* Check for trailing characters.
*/
if (c != '\0' && (!isprint(c) || !isspace(c)))
if (c != '\0' && !isprint(c) && !isspace(c))
return (0);
/*
* Concoct the address according to