Revert "Create the HTTP tree after we're assured it's HTTP. Otherwise a bogus tree is created when HTTP2 traffic is found."
It causes the DTLS decryption test suite to fail for some reason, and I don't have time/energy to investigate further, so we should probably revert it until that gets resolved.
This reverts commit fc5d8db74d
.
Change-Id: Iac9a7592047d2e080e380a70752efa076303e442
Reviewed-on: https://code.wireshark.org/review/1297
Reviewed-by: Michael Mann <mmann78@netscape.net>
Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
parent
f0e77aa366
commit
cb8386c4de
|
@ -796,6 +796,11 @@ dissect_http_message(tvbuff_t *tvb, int offset, packet_info *pinfo,
|
|||
col_set_str(pinfo->cinfo, COL_INFO, "Continuation or non-HTTP traffic");
|
||||
|
||||
orig_offset = offset;
|
||||
if (tree) {
|
||||
ti = proto_tree_add_item(tree, proto_http, tvb, offset, -1,
|
||||
ENC_NA);
|
||||
http_tree = proto_item_add_subtree(ti, ett_http);
|
||||
}
|
||||
|
||||
/*
|
||||
* Process the packet data, a line at a time.
|
||||
|
@ -954,15 +959,9 @@ dissect_http_message(tvbuff_t *tvb, int offset, packet_info *pinfo,
|
|||
break;
|
||||
|
||||
is_http:
|
||||
if ((tree) && (http_tree == NULL)) {
|
||||
ti = proto_tree_add_item(tree, proto_http, tvb, orig_offset, -1, ENC_NA);
|
||||
http_tree = proto_item_add_subtree(ti, ett_http);
|
||||
}
|
||||
|
||||
/*
|
||||
* Process this line.
|
||||
*/
|
||||
|
||||
if (linelen == 0) {
|
||||
/*
|
||||
* This is a blank line, which means that
|
||||
|
|
Loading…
Reference in New Issue