diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-01-07 00:26:57 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-01-07 00:26:57 +0000 |
commit | 1b3199c42550ccbc1ba96ab556a1dc3de3e40605 (patch) | |
tree | 2ea1bdb40673fa4c7f903d216bd81b964106c708 /epan/dissectors/packet-giop.c | |
parent | 1bd291a7b8b73b753926d53e26cfd35513597061 (diff) |
If we get an unknown reply status, don't print a g_warning message -
just put the reply body, if any, into the protocol tree as a blob. The
protocol tree will note that it's an unknown status.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35414 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-giop.c')
-rw-r--r-- | epan/dissectors/packet-giop.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/epan/dissectors/packet-giop.c b/epan/dissectors/packet-giop.c index 8ce4c36a0a..5b3e67f830 100644 --- a/epan/dissectors/packet-giop.c +++ b/epan/dissectors/packet-giop.c @@ -2910,6 +2910,7 @@ dissect_reply_body (tvbuff_t *tvb, guint offset, packet_info *pinfo, guint sequence_length; gboolean exres = FALSE; /* result of trying explicit dissectors */ gchar * repoid = NULL; /* Repositor ID looked up from objkey */ + gint reply_body_length; /* * comp_req_list stuff @@ -3052,8 +3053,11 @@ dissect_reply_body (tvbuff_t *tvb, guint offset, packet_info *pinfo, } default: - - g_warning("giop: Unknown reply status %i request_id = %u\n",reply_status, header->req_id); + reply_body_length = tvb_reported_length_remaining(tvb, offset); + if (reply_body_length >0) + proto_tree_add_text(tree, tvb, offset, -1, + "Reply body (%d byte%s)", reply_body_length, + plurality(reply_body_length, "", "s")); break; |