BIND 10 trac2522, updated. 03a458983cf7d345ffa7d9d1b2cad0b509b3be54 [2522] initialize impl_ directly in TSIG lexer constructor
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed May 8 14:59:48 UTC 2013
The branch, trac2522 has been updated
via 03a458983cf7d345ffa7d9d1b2cad0b509b3be54 (commit)
from 9bfdf12f2fd3108a4b3b772c20e9b78396164042 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 03a458983cf7d345ffa7d9d1b2cad0b509b3be54
Author: Paul Selkirk <pselkirk at isc.org>
Date: Wed May 8 10:59:40 2013 -0400
[2522] initialize impl_ directly in TSIG lexer constructor
-----------------------------------------------------------------------
Summary of changes:
src/lib/dns/rdata/any_255/tsig_250.cc | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dns/rdata/any_255/tsig_250.cc b/src/lib/dns/rdata/any_255/tsig_250.cc
index e71e548..955ddd4 100644
--- a/src/lib/dns/rdata/any_255/tsig_250.cc
+++ b/src/lib/dns/rdata/any_255/tsig_250.cc
@@ -138,7 +138,7 @@ TSIG::constructFromLexer(MasterLexer& lexer) {
if (otherlen > 0xffff) {
isc_throw(InvalidRdataText, "TSIG Other Len out of range");
}
- const string otherdata_txt = (otherlen > 0) ?
+ const string otherdata_txt = (otherlen > 0) ?
lexer.getNextToken(MasterToken::STRING).getString() : "";
vector<uint8_t> other_data;
decodeBase64(otherdata_txt, other_data);
@@ -239,9 +239,8 @@ TSIG::TSIG(const std::string& tsig_str) : impl_(NULL) {
/// RDATA to be created
TSIG::TSIG(MasterLexer& lexer, const Name*,
MasterLoader::Options, MasterLoaderCallbacks&) :
- impl_(NULL)
+ impl_(constructFromLexer(lexer))
{
- impl_ = constructFromLexer(lexer);
}
/// \brief Constructor from wire-format data.
More information about the bind10-changes
mailing list