[Code] Fixed crash bug in do_whois.