Check that nameserver was found

This commit is contained in:
Erik Ekman 2009-03-28 17:03:42 +00:00 committed by Erik Ekman
parent 5dccfbecf6
commit 4bbf4ecd14

View file

@ -1104,7 +1104,12 @@ main(int argc, char **argv)
/* NOTREACHED */ /* NOTREACHED */
} }
if (nameserv_addr) {
set_nameserver(nameserv_addr); set_nameserver(nameserv_addr);
} else {
usage();
/* NOTREACHED */
}
if(strlen(topdomain) <= 128) { if(strlen(topdomain) <= 128) {
if(check_topdomain(topdomain)) { if(check_topdomain(topdomain)) {