mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-22 15:50:59 -05:00
- Fix Local Memory Leak in cachedb_init(),
reported by X41 D-Sec.
This commit is contained in:
parent
f887552763
commit
2dcc7016ac
2 changed files with 6 additions and 0 deletions
|
|
@ -244,6 +244,8 @@ cachedb_init(struct module_env* env, int id)
|
||||||
env->modinfo[id] = (void*)cachedb_env;
|
env->modinfo[id] = (void*)cachedb_env;
|
||||||
if(!cachedb_apply_cfg(cachedb_env, env->cfg)) {
|
if(!cachedb_apply_cfg(cachedb_env, env->cfg)) {
|
||||||
log_err("cachedb: could not apply configuration settings.");
|
log_err("cachedb: could not apply configuration settings.");
|
||||||
|
free(cachedb_env);
|
||||||
|
env->modinfo[id] = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* see if a backend is selected */
|
/* see if a backend is selected */
|
||||||
|
|
@ -252,6 +254,8 @@ cachedb_init(struct module_env* env, int id)
|
||||||
if(!(*cachedb_env->backend->init)(env, cachedb_env)) {
|
if(!(*cachedb_env->backend->init)(env, cachedb_env)) {
|
||||||
log_err("cachedb: could not init %s backend",
|
log_err("cachedb: could not init %s backend",
|
||||||
cachedb_env->backend->name);
|
cachedb_env->backend->name);
|
||||||
|
free(cachedb_env);
|
||||||
|
env->modinfo[id] = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
cachedb_env->enabled = 1;
|
cachedb_env->enabled = 1;
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@
|
||||||
reported by X41 D-Sec.
|
reported by X41 D-Sec.
|
||||||
- Fix Config Injection in create_unbound_ad_servers.sh,
|
- Fix Config Injection in create_unbound_ad_servers.sh,
|
||||||
reported by X41 D-Sec.
|
reported by X41 D-Sec.
|
||||||
|
- Fix Local Memory Leak in cachedb_init(),
|
||||||
|
reported by X41 D-Sec.
|
||||||
|
|
||||||
19 November 2019: Wouter
|
19 November 2019: Wouter
|
||||||
- Fix CVE-2019-18934, shell execution in ipsecmod.
|
- Fix CVE-2019-18934, shell execution in ipsecmod.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue