Add a length check.

svn path=/trunk/; revision=14030
This commit is contained in:
Gerald Combs 2005-04-08 19:14:05 +00:00
parent 388c7e2da9
commit caf66bb8dd
1 changed files with 1 additions and 0 deletions

View File

@ -857,6 +857,7 @@ nextcontext:
default:
tokenlen = (tvb_RBRKT+1) - tvb_previous_offset;
tvb_ensure_bytes_exist(tvb, tvb_previous_offset, tokenlen);
proto_tree_add_string(megaco_tree, hf_megaco_error_Frame, tvb,
tvb_previous_offset, tokenlen,
"No Command detectable !");