From: Yuri Schaeffer Date: Mon, 13 Jul 2015 14:06:10 +0000 (+0000) Subject: ask for writelock instead of readlock. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8af26b2669dabe8b1d5cc3c93d116446ee50762;p=thirdparty%2Funbound.git ask for writelock instead of readlock. git-svn-id: file:///svn/unbound/branches/edns-subnet@3450 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/edns-subnet/subnetmod.c b/edns-subnet/subnetmod.c index ce879639c..fb82dd400 100644 --- a/edns-subnet/subnetmod.c +++ b/edns-subnet/subnetmod.c @@ -229,7 +229,7 @@ lookup_and_reply(struct module_qstate *qstate, int id) struct addrnode *node; if (iq) iq->qinfo_hash = h; /** Might be useful on cache miss */ - e = slabhash_lookup(sne->subnet_msg_cache, h, &qstate->qinfo, 0); + e = slabhash_lookup(sne->subnet_msg_cache, h, &qstate->qinfo, 1); if (!e) return 0; /** qinfo not in cache */ data = e->data; tree = (edns->subnet_addr_fam == EDNSSUBNET_ADDRFAM_IP4)?