diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-09-01 19:44:26 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-09-01 19:44:26 +0000 |
commit | ae01612b5a6316e2e2941c13e957e5364d00c18a (patch) | |
tree | a2c1a12f80d77373c2b9b23163eb88075f453bdd /epan/dissectors | |
parent | 86b499765db1c16fdc23d6a8acc1d7d60c206e06 (diff) |
It looks like there might not always be a body, check if there is.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15663 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-giop.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-giop.c b/epan/dissectors/packet-giop.c index 9e60cad1d6..5418596425 100644 --- a/epan/dissectors/packet-giop.c +++ b/epan/dissectors/packet-giop.c @@ -3051,8 +3051,10 @@ static void dissect_giop_reply (tvbuff_t * tvb, packet_info * pinfo, proto_tree header->req_id = request_id; /* save for sub dissector */ header->rep_status = reply_status; /* save for sub dissector */ - dissect_reply_body(tvb, offset, pinfo, reply_tree, stream_is_big_endian, - reply_status, header,tree); + /* Do we have a body */ + if (tvb_reported_length_remaining(tvb, offset)) + dissect_reply_body(tvb, offset, pinfo, reply_tree, stream_is_big_endian, + reply_status, header,tree); } |