Fix IPv4 parsing.

I got thrown by an uncommon idiom when changing the checks.