From 0ad8904b40d699405f60655606db42475c011b67 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Wed, 16 Sep 2020 20:37:30 +0100 Subject: [PATCH] acl.c: detect invalid ipv6 string --- src/acl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/acl.c b/src/acl.c index 75216c3..261b7dd 100644 --- a/src/acl.c +++ b/src/acl.c @@ -163,6 +163,9 @@ insert_acl (char *location, acl_access_t access_type, acl_list_t *access_list) memset (acl.address.ip.mask, 0xff, IPV6_LEN); } else { int i; + /* bogus ipv6 ? */ + if (strchr (location, ':')) + return -1; /* * At this point we're either a hostname or an