Fix core from parse_v4_netmask parsing invalid cidrs

strtoul returns an unsigned value - am I missing something here? This check would always evaluate to false.