mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +00:00
[2442] in CharStringTooLong what() msg, clarify it includes an extra octet.
This commit is contained in:
@@ -86,7 +86,7 @@ strToCharString(const MasterToken::StringRegion& str_region,
|
|||||||
}
|
}
|
||||||
if (result.size() > MAX_CHARSTRING_LEN + 1) { // '+ 1' due to the len field
|
if (result.size() > MAX_CHARSTRING_LEN + 1) { // '+ 1' due to the len field
|
||||||
isc_throw(CharStringTooLong, "character-string is too long: " <<
|
isc_throw(CharStringTooLong, "character-string is too long: " <<
|
||||||
result.size() << " bytes");
|
(result.size() - 1) << "(+1) characters");
|
||||||
}
|
}
|
||||||
result[0] = result.size() - 1;
|
result[0] = result.size() - 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user