abort with failure if no domain is passed to psl in a mode where it tries to work with domains
This commit is contained in:
parent
9b9c3a35c1
commit
1addfb07a0
12
tools/psl.c
12
tools/psl.c
|
@ -130,9 +130,15 @@ int main(int argc, const char *const *argv)
|
|||
break;
|
||||
}
|
||||
|
||||
if (!psl && mode != 99) {
|
||||
printf("No PSL data available - aborting\n");
|
||||
exit(2);
|
||||
if (mode != 99) {
|
||||
if (!psl) {
|
||||
fprintf(stderr, "No PSL data available - aborting\n");
|
||||
exit(2);
|
||||
}
|
||||
if (arg >= argv + argc) {
|
||||
fprintf(stderr, "No domains given - aborting\n");
|
||||
exit(3);
|
||||
}
|
||||
}
|
||||
|
||||
if (mode == 1) {
|
||||
|
|
Loading…
Reference in New Issue