Skip to content

Commit

Permalink
auth: remove an unused variable from the querycache
Browse files Browse the repository at this point in the history
  • Loading branch information
mind04 committed Jun 8, 2022
1 parent 0438e24 commit c536574
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions pdns/auth-querycache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,9 @@ void AuthQueryCache::insert(const DNSName &qname, const QType& qtype, vector<DNS

if(!ttl)
return;

time_t now = time(nullptr);
CacheEntry val;
val.created = now;
val.ttd = now + ttl;
val.qname = qname;
val.qtype = qtype.getCode();
Expand Down
1 change: 0 additions & 1 deletion pdns/auth-querycache.hh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ private:
{
DNSName qname;
mutable vector<DNSZoneRecord> drs;
mutable time_t created{0};
mutable time_t ttd{0};
uint16_t qtype{0};
int zoneID{-1};
Expand Down

0 comments on commit c536574

Please sign in to comment.