Skip to content

Commit

Permalink
- Fix write access for lock.
Browse files Browse the repository at this point in the history
  • Loading branch information
gthess committed Sep 23, 2024
1 parent 57316fb commit fa11d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/cache/dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ dns_cache_store(struct module_env* env, struct query_info* msgqinf,
* useful expired record exists. */
struct msgreply_entry* e = msg_cache_lookup(env,
msgqinf->qname, msgqinf->qname_len, msgqinf->qtype,
msgqinf->qclass, flags, 0, 0);
msgqinf->qclass, flags, 0, 1);
if(e) {
struct reply_info* cached = e->entry.data;
if(cached->ttl < *env->now
Expand Down

0 comments on commit fa11d13

Please sign in to comment.