summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/acl.c3
1 files changed, 3 insertions, 0 deletions
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