Bail on config errro on startup.
This commit is contained in:
parent
1a8b06ab30
commit
d007a14baa
10
src/bip.c
10
src/bip.c
@ -1023,10 +1023,12 @@ int fireup(bip_t *bip, FILE *conf)
|
|||||||
free(root_list);
|
free(root_list);
|
||||||
root_list = NULL;
|
root_list = NULL;
|
||||||
|
|
||||||
validate_config(bip);
|
if (validate_config(bip)) {
|
||||||
sweep(bip);
|
sweep(bip);
|
||||||
return 1;
|
return 1;
|
||||||
|
} else {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
out_conf_error:
|
out_conf_error:
|
||||||
free_conf(root_list);
|
free_conf(root_list);
|
||||||
root_list = NULL;
|
root_list = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user