mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-22 22:51:27 +00:00
Check that nameserver was found
This commit is contained in:
parent
5dccfbecf6
commit
4bbf4ecd14
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue