Skip to content
Snippets Groups Projects
Commit 552c8c6f authored by tho's avatar tho
Browse files

Packets/80221Bundle: just another fix for DynamicTLVLengthParser

parent a5dc855b
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ prefix_ void senf::DynamicTLVLengthParser::value(value_type const & v)
switch (bytes() ) {
case 1:
if (v > 128) throw( TLVLengthException());
fixed_length_field() = v;
length_field() = v;
return;
case 2:
if (v > UInt8Parser::max_value + 128) throw( TLVLengthException());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment