Parcourir la source

[2522] TSIG algorigthm can be a reference, maybe a bit more efficient

Paul Selkirk il y a 12 ans
Parent
commit
adc3e2f94d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/dns/rdata/any_255/tsig_250.cc

+ 1 - 1
src/lib/dns/rdata/any_255/tsig_250.cc

@@ -79,7 +79,7 @@ TSIG::constructFromLexer(MasterLexer& lexer) {
     // but it's not actually a domain name, so we allow it to be not
     // fully qualified.
     const Name root(".");
-    const Name algorithm = createNameFromLexer(lexer, &root);
+    const Name& algorithm = createNameFromLexer(lexer, &root);
 
     const string time_str = lexer.getNextToken(MasterToken::STRING).getString();
     uint64_t time_signed;