Add a tvb_ensure_bytes_exist().

svn path=/trunk/; revision=13963
This commit is contained in:
Gerald Combs 2005-03-28 22:35:35 +00:00
parent e548ddf904
commit 731e79432e
1 changed files with 1 additions and 0 deletions

View File

@ -537,6 +537,7 @@ dissect_mip6(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
return;
}
len -= (offset - start_offset);
tvb_ensure_bytes_exist(tvb, offset, len);
dissect_mip6_options(tvb, mip6_tree, offset, len, pinfo);
}
}