[Privoxy-commits] [privoxy] 07/38: acl_addr(): Properly reject IPv6 addresses when compiled without RFC2553 support
User Git
git at git.privoxy.org
Thu Apr 9 09:37:05 CEST 2026
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit d2c4a1944f89817b878c61122c302c3167611db7
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Tue Mar 31 12:23:56 2026 +0200
acl_addr(): Properly reject IPv6 addresses when compiled without RFC2553 support
---
filters.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/filters.c b/filters.c
index 8bda3caa..07c9f5fd 100644
--- a/filters.c
+++ b/filters.c
@@ -387,6 +387,7 @@ int acl_addr(const char *aspec, struct access_control_addr *aca)
if ((*acl_spec == '[') && (NULL != (p = strchr(acl_spec, ']'))))
{
+#ifdef HAVE_RFC2553
*p = '\0';
memmove(acl_spec, acl_spec + 1, (size_t)(p - acl_spec));
@@ -394,6 +395,14 @@ int acl_addr(const char *aspec, struct access_control_addr *aca)
{
p = NULL;
}
+#else
+ log_error(LOG_LEVEL_ERROR,
+ "Ignoring ACL with IPv6 address due to lack of RFC2553 support: %s",
+ acl_spec);
+ freez(acl_spec);
+
+ return(-1);
+#endif
}
else
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list