From: Wayne Davison Date: Mon, 22 Jun 2020 18:17:56 +0000 (-0700) Subject: Tweak valid_ipaddr() check. X-Git-Tag: v3.2.1~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8f6d6bcb086285ba3e791f4db8c4f3946b797db8;p=thirdparty%2Frsync.git Tweak valid_ipaddr() check. --- diff --git a/clientname.c b/clientname.c index 1e85c84e..ef5e4d24 100644 --- a/clientname.c +++ b/clientname.c @@ -481,7 +481,7 @@ static int valid_ipaddr(const char *s) for (count = 0; count < 8; count++) { if (!*s) - return saw_double_colon && count < 7; + return saw_double_colon; if (strchr(s, ':') == NULL && strchr(s, '.') != NULL) { if ((!saw_double_colon && count != 6) || (saw_double_colon && count > 6))