Commit 7dd1d39f authored by Yoshitaka Aharen's avatar Yoshitaka Aharen
Browse files

[2157] directly convert `ConstEDNSPtr` to bool

parent 0382951b
......@@ -178,7 +178,7 @@ Counters::incResponse(const QRAttributes& qrattrs, const Message& response) {
// response EDNS
ConstEDNSPtr response_edns = response.getEDNS();
if (response_edns != NULL && response_edns->getVersion() == 0) {
if (response_edns && response_edns->getVersion() == 0) {
server_qr_counter_.inc(QR_RESPONSE_EDNS0);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment