]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
ask for writelock instead of readlock.
authorYuri Schaeffer <yuri@nlnetlabs.nl>
Mon, 13 Jul 2015 14:06:10 +0000 (14:06 +0000)
committerYuri Schaeffer <yuri@nlnetlabs.nl>
Mon, 13 Jul 2015 14:06:10 +0000 (14:06 +0000)
git-svn-id: file:///svn/unbound/branches/edns-subnet@3450 be551aaa-1e26-0410-a405-d3ace91eadb9

edns-subnet/subnetmod.c

index ce879639c006e9c2b6b826771a2641e64989c211..fb82dd4009f0a9fea55eb9f4aeb27b83861292c6 100644 (file)
@@ -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)?