exit at the first TS_RESP_CTX initialization fail
This commit is contained in:
parent
930a6c069a
commit
c434ed4f38
|
@ -364,8 +364,10 @@ int set_params(rfc3161_context *ct, char *conf_file, char *conf_wd) {
|
||||||
for (int i = 0; i < numthreads; i++) {
|
for (int i = 0; i < numthreads; i++) {
|
||||||
ct->ts_ctx_pool[i].ts_ctx = create_tsctx(ct, ct->conf, TSA_SECTION, NULL);
|
ct->ts_ctx_pool[i].ts_ctx = create_tsctx(ct, ct->conf, TSA_SECTION, NULL);
|
||||||
ct->ts_ctx_pool[i].available = 1;
|
ct->ts_ctx_pool[i].available = 1;
|
||||||
if (ct->ts_ctx_pool[i].ts_ctx == NULL)
|
if (ct->ts_ctx_pool[i].ts_ctx == NULL){
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// like any good daemon, return to '/' once the configuration is loaded
|
// like any good daemon, return to '/' once the configuration is loaded
|
||||||
chdir("/");
|
chdir("/");
|
||||||
|
|
Loading…
Reference in New Issue