From 4f52183a39f52518f4767e9224608165153e8361 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 15 Apr 2009 19:06:39 +0000 Subject: [PATCH] patch #6765: Supporting new line characters in inet_aton() --- CHANGELOG | 3 +++ src/core/ipv4/inet.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 59e71e93..04ea9a90 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/src/core/ipv4/inet.c b/src/core/ipv4/inet.c index 496aabae..f64ff91f 100644 --- a/src/core/ipv4/inet.c +++ b/src/core/ipv4/inet.c @@ -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