As reported by Steffen from Apache Lounge (http://www.apachelounge.com/), we are making an incorrect decision on which inet_pton to use.
We have our custom version of inet_pton and depending on windows version, we also have it available through windows APIs. If so, we should use the windows version.
A good way to identify the windows versions:
By applying #if !(NTDDI_VERSION >= NTDDI_VISTA) on the msc_util.c we may good to go.
The branch with test implementation available at: https://github.com/SpiderLabs/ModSecurity/tree/my_inet_pton
Buildbots has no complaints about it:
I did made the patch that you've suggested and apparently to code built well, as you can see here:
It still demands more tests to before merge.
Fixed by: 831e598