Make sure we do not pass an IP address to ip_in_subnet as a subnet, it does not handle that well.