aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2008-07-08 22:36:35 +0000
committerBill Meier <wmeier@newsguy.com>2008-07-08 22:36:35 +0000
commit65bcd0d67f54505a342e53133293e1524c4b2af0 (patch)
tree43e0a6b9e4773f9c83d3681c871ce8ce272fa929 /epan
parenta3e69d9ec5fc35ce230053a0f0180f108b239d07 (diff)
Display "Decompression failed" when appropriate (& Fix some src spacing)
svn path=/trunk/; revision=25681
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-http.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-http.c b/epan/dissectors/packet-http.c
index 7fece693df..17c8f1f359 100644
--- a/epan/dissectors/packet-http.c
+++ b/epan/dissectors/packet-http.c
@@ -1060,7 +1060,7 @@ dissect_http_message(tvbuff_t *tvb, int offset, packet_info *pinfo,
0, tvb_length(next_tvb),
"Content-encoded entity body (%s): %u bytes",
headers.content_encoding,
- tvb_length(next_tvb));
+ tvb_length(next_tvb));
e_tree = proto_item_add_subtree(e_ti,
ett_http_encoded_entity);
@@ -1076,12 +1076,13 @@ dissect_http_message(tvbuff_t *tvb, int offset, packet_info *pinfo,
*
tvb_free(next_tvb);
*/
- proto_item_append_text(e_ti, " -> %u bytes", tvb_length(uncomp_tvb));
+ proto_item_append_text(e_ti, " -> %u bytes", tvb_length(uncomp_tvb));
next_tvb = uncomp_tvb;
tvb_set_child_real_data_tvbuff(tvb, next_tvb);
add_new_data_source(pinfo, next_tvb,
"Uncompressed entity body");
} else {
+ proto_item_append_text(e_ti, " [Error: Decompression failed]");
call_dissector(data_handle, next_tvb, pinfo,
e_tree);