From 4eda29abf91c685cd068a5ab9d7cde072739813f Mon Sep 17 00:00:00 2001 From: fbernon Date: Fri, 24 Apr 2009 12:14:54 +0000 Subject: [PATCH] inet.c: patch #6765: Fix a small problem with the last changes (incorrect behavior, with ip address string not ended by a '\0', a space or a end of line) --- CHANGELOG | 5 +++++ src/core/ipv4/inet.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 797b97f5..dac0ea5a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -88,6 +88,11 @@ HISTORY ++ Bugfixes: + 2009-04-24 Simon Goldschmidt, Frédéric Bernon + * inet.c: patch #6765: Fix a small problem with the last changes (incorrect + behavior, with with ip address string not ended by a '\0', a space or a + end of line) + 2009-04-19 Simon Goldschmidt * rawapi.txt: Fixed bug #26069: Corrected documentation: if tcp_connect fails, pcb->err is called, not pcb->connected (with an error code). diff --git a/src/core/ipv4/inet.c b/src/core/ipv4/inet.c index f64ff91f..69baf1d5 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' && !isspace(c)) return (0); /* * Concoct the address according to