mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
nicer failure
git-svn-id: file:///svn/unbound/trunk@2332 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
08c580bb32
commit
04e45f98d6
1 changed files with 4 additions and 2 deletions
|
|
@ -1021,8 +1021,10 @@ worker_create(struct daemon* daemon, int id, int* ports, int n)
|
|||
if(!(worker->rndstate = ub_initstate(seed, daemon->rand))) {
|
||||
seed = 0;
|
||||
log_err("could not init random numbers.");
|
||||
worker_delete(worker);
|
||||
return 0;
|
||||
tube_delete(worker->cmd);
|
||||
free(worker->ports);
|
||||
free(worker);
|
||||
return NULL;
|
||||
}
|
||||
seed = 0;
|
||||
return worker;
|
||||
|
|
|
|||
Loading…
Reference in a new issue