inliniac/suricata — pull request #1115 by bmeeks8 (2014-08-26 14:19:10+00:00)
Title: Fix IPv6 cidr mask limit bug in SCRadixAddKeyIPV6String() function.

There is a bug in the SCRadixAddKeyIPV6String() function in the file util-radix-tree.c. The test for min and max values for an CIDR mask incorrectly tests the upper limit as 32 when it should be 128 for an IPv6 address. I think this perhaps is an old copy-paste error if the IPv6 version of this function was initially copies from the corresponding IPv4 version directly above it in the code.

Without this patch, the function will return null when you attempt to add an IPv6 network whose CIDR mask is larger than 32 (for example, the popular /64 mask will cause the function to return the NULL error condition).