aboutsummaryrefslogtreecommitdiff
path: root/contrib/unbound/validator/val_kcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/unbound/validator/val_kcache.c')
-rw-r--r--contrib/unbound/validator/val_kcache.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/contrib/unbound/validator/val_kcache.c b/contrib/unbound/validator/val_kcache.c
index e0b88b6df81d..f5d49d24f2db 100644
--- a/contrib/unbound/validator/val_kcache.c
+++ b/contrib/unbound/validator/val_kcache.c
@@ -81,16 +81,11 @@ key_cache_delete(struct key_cache* kcache)
void
key_cache_insert(struct key_cache* kcache, struct key_entry_key* kkey,
- struct module_qstate* qstate)
+ int copy_reason)
{
- struct key_entry_key* k = key_entry_copy(kkey);
+ struct key_entry_key* k = key_entry_copy(kkey, copy_reason);
if(!k)
return;
- if(key_entry_isbad(k) && qstate->errinf &&
- qstate->env->cfg->val_log_level >= 2) {
- /* on malloc failure there is simply no reason string */
- key_entry_set_reason(k, errinf_to_str_bogus(qstate));
- }
key_entry_hash(k);
slabhash_insert(kcache->slab, k->entry.hash, &k->entry,
k->entry.data, NULL);