Skip to content

Commit

Permalink
dnsgram: Fix Coverity CID 1401647
Browse files Browse the repository at this point in the history
  • Loading branch information
rgacogne committed Aug 16, 2023
1 parent f84b2bc commit 299c668
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdns/dnsgram.cc
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,15 @@ try
}

if(mdp.d_header.rd && !mdp.d_header.qr) {
rdqcounts[pr.d_pheader.ts.tv_sec + 0.01*(pr.d_pheader.ts.tv_usec/10000)]++;
rdqcounts[pr.d_pheader.ts.tv_sec + 0.01*(pr.d_pheader.ts.tv_usec/10000.0)]++;
g_lastquestionTime=pr.d_pheader.ts;
g_clientQuestions++;
totalQueries++;
counts[pair(mdp.d_qname, mdp.d_qtype)]++;
questions.emplace(mdp.d_qname, mdp.d_qtype);
}
else if(mdp.d_header.rd && mdp.d_header.qr) {
rdacounts[pr.d_pheader.ts.tv_sec + 0.01*(pr.d_pheader.ts.tv_usec/10000)]++;
rdacounts[pr.d_pheader.ts.tv_sec + 0.01*(pr.d_pheader.ts.tv_usec/10000.0)]++;
g_lastanswerTime=pr.d_pheader.ts;
g_clientResponses++;
answers.emplace(mdp.d_qname, mdp.d_qtype);
Expand Down

0 comments on commit 299c668

Please sign in to comment.