1
0
forked from bip/bip

Bail on config errro on startup.

This commit is contained in:
Arnaud Cornet 2008-01-07 23:43:37 +01:00
parent 1a8b06ab30
commit d007a14baa

View File

@ -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;