in_aton() gives weird results if it sees a newline at the end of the input. This patch makes it able to handle such input correctly.
Signed-off-by: Mitch Williams <[EMAIL PROTECTED]> diff -urpN -X dontdiff linux-2.6.14-clean/net/core/utils.c linux-2.6.14/net/core/utils.c --- linux-2.6.14-clean/net/core/utils.c 2005-10-27 17:02:08.000000000 -0700 +++ linux-2.6.14/net/core/utils.c 2005-11-08 10:09:49.000000000 -0800 @@ -175,7 +175,7 @@ __u32 in_aton(const char *str) if (*str != '\0') { val = 0; - while (*str != '\0' && *str != '.') + while (*str != '\0' && *str != '.' && *str != '\n') { val *= 10; val += *str - '0'; - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html