Skip to content

Commit

Permalink
- Fix #1099: Unbound core dump on SIGSEGV.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcawijngaards committed Jul 5, 2024
1 parent 978b069 commit b53d900
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/Changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
5 July 2024: Wouter
- Fix for neater printout for error for missing DS response.
- Fix neater printout.
- Fix #1099: Unbound core dump on SIGSEGV.

4 July 2024: Wouter
- Fix to print details about the failure to lookup a DNSKEY record
Expand Down
2 changes: 2 additions & 0 deletions services/cache/dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ store_rrsets(struct module_env* env, struct reply_info* rep, time_t now,
}
/* if ref was updated make sure the message ttl is updated to
* the minimum of the current rrsets. */
lock_rw_rdlock(&rep->rrsets[i]->entry.lock);
ttl = ((struct packed_rrset_data*)rep->rrsets[i]->entry.data)->ttl;
lock_rw_unlock(&rep->rrsets[i]->entry.lock);
if(ttl < min_ttl) min_ttl = ttl;
}
if(min_ttl < rep->ttl) {
Expand Down

0 comments on commit b53d900

Please sign in to comment.