Fix for bug 1272.

Check length remaining before aligning.

svn path=/trunk/; revision=20198
This commit is contained in:
Jaap Keuter 2006-12-22 14:48:51 +00:00
parent c582bce50d
commit 79b23d4856
1 changed files with 4 additions and 1 deletions

View File

@ -3586,7 +3586,10 @@ dissect_giop_request_1_2 (tvbuff_t * tvb, packet_info * pinfo,
* GIOP octet stream start.
*/
set_new_alignment(&offset, GIOP_HEADER_SIZE, 8);
if (tvb_reported_length_remaining(tvb, offset) > 0)
{
set_new_alignment(&offset, GIOP_HEADER_SIZE, 8);
}
/*
* Save FN,reqid,and operation for later. Add sub_handle later.