Parcourir la source

[2387] Update API doc for NSEC MasterLexer constructor

Mukund Sivaraman il y a 12 ans
Parent
commit
926dd635c3
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      src/lib/dns/rdata/generic/nsec_47.cc

+ 4 - 2
src/lib/dns/rdata/generic/nsec_47.cc

@@ -136,15 +136,17 @@ NSEC::NSEC(InputBuffer& buffer, size_t rdata_len) {
 ///
 /// \param lexer A \c MasterLexer object parsing a master file for the
 /// RDATA to be created
+/// \param origin The origin to use with a relative Next Domain Name
+/// field
 NSEC::NSEC(MasterLexer& lexer, const Name* origin, MasterLoader::Options,
            MasterLoaderCallbacks&)
 {
-    const Name origin_name(createNameFromLexer(lexer, origin));
+    const Name next_name(createNameFromLexer(lexer, origin));
 
     vector<uint8_t> typebits;
     buildBitmapsFromLexer("NSEC", lexer, typebits);
 
-    impl_ = new NSECImpl(origin_name, typebits);
+    impl_ = new NSECImpl(next_name, typebits);
 }
 
 NSEC::NSEC(const NSEC& source) :