Parcourir la source

[2164] Update syntax of rrsig_ test as it is a shared_ptr

Mukund Sivaraman il y a 12 ans
Parent
commit
3ed457da1b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/dns/rrset.cc

+ 1 - 1
src/lib/dns/rrset.cc

@@ -251,7 +251,7 @@ RRset::~RRset() {}
 
 unsigned int
 RRset::getSIGRdataCount() const {
-    if (rrsig_ != NULL) {
+    if (rrsig_) {
         return (rrsig_->getRdataCount());
     } else {
         return (0);