[ https://www.modsecurity.org/tracker/browse/MODSEC-358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Breno Silva Pinto resolved MODSEC-358.
--------------------------------------
Resolution: Fixed
> Code does not compile if IPv6 is not supported
> ----------------------------------------------
>
> Key: MODSEC-358
> URL: https://www.modsecurity.org/tracker/browse/MODSEC-358
> Project: ModSecurity
> Issue Type: Bug
> Security Level: Normal
> Components: Build System
> Affects Versions: 2.7.1
> Environment: Windows Visual C++ 6.0
> Reporter: Marc Stern
> Assignee: Breno Silva Pinto
> Fix For: 2.7.2
>
>
> When IPv6 is not supported, the compilation should not include the support for it:
> msc_util.c:
> #if APR_HAVE_IPV6
> #ifdef WIN32
> int inet_pton(int family, const char *src, void *dst) {
> re_operators.c:
> #if APR_HAVE_IPV6
> struct in6_addr in6;
> #endif
> [...]
> #if APR_HAVE_IPV6
> if (inet_pton(AF_INET6, var->value, &in6) <= 0) {
> if (msr->txcfg->debuglog_level >= 9) {
> msr_log(msr, 9, "IPmatchFromFile: bad IPv6 specification \"%s\".", var->value);
> }
> *error_msg = apr_psprintf(msr->mp, "IPmatchFromFile: bad IP specification \"%s\".", var->value);
> return 0;
> }
> if (CPTIpMatch(msr, (unsigned char *)&in6.s6_addr, rtree->ipv6_tree, IPV6_TREE) != NULL) {
> *error_msg = apr_psprintf(msr->mp, "IPmatchFromFile \"%s\" matched at %s.", var->value, var->name);
> return 1;
> }
> #endif
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|