Fix the return code check for ParseIP.

Signed-off-by: Mrunal Patel <mrunalp@gmail.com> (github: mrunalp)