require e-mail address if dns is enabled
Writing SOA record will cause nullptr dereference if it's not specified.
This commit is contained in:
parent
a59329d936
commit
f0c8b87a07
1 changed files with 4 additions and 0 deletions
4
main.cpp
4
main.cpp
|
@ -421,6 +421,10 @@ int main(int argc, char **argv) {
|
||||||
fprintf(stderr, "No hostname set. Please use -h.\n");
|
fprintf(stderr, "No hostname set. Please use -h.\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
if (fDNS && !opts.mbox) {
|
||||||
|
fprintf(stderr, "No e-mail address set. Please use -m.\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
FILE *f = fopen("dnsseed.dat","r");
|
FILE *f = fopen("dnsseed.dat","r");
|
||||||
if (f) {
|
if (f) {
|
||||||
printf("Loading dnsseed.dat...");
|
printf("Loading dnsseed.dat...");
|
||||||
|
|
Loading…
Reference in a new issue