Commit 1d6285dc authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

avoid using a large (>= 2^32) constant for wider portability.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac372@3632 e5f2f494-b856-4b98-b285-d166d9295462
parent 625cf7a1
......@@ -249,7 +249,8 @@ TSIG::TSIG(const Name& algorithm, uint64_t time_signed, uint16_t fudge,
uint16_t error, uint16_t other_len, const void* other_data) :
impl_(NULL)
{
if (time_signed > 0xffffffffffff) {
// Time Signed is a 48-bit value.
if ((time_signed >> 48) != 0) {
isc_throw(OutOfRange, "TSIG Time Signed is too large: " <<
time_signed);
}
......
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