Display "Decompression failed" when appropriate (& Fix some src spacing)
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 8 Jul 2008 22:36:35 +0000 (22:36 +0000)
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 8 Jul 2008 22:36:35 +0000 (22:36 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25681 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-http.c

index 7fece693dfcd6699272b6376031629b5cfe05e17..17c8f1f35954d5b0915053c675389bf696f80287 100644 (file)
@@ -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);