forked from osmocom/wireshark
From Mike Duigou <wireshark@duigou.org> (bug 1698):
Enclosed is a patch with fixes problems with the desegmentation of chunked HTTP message bodies. ... Changing the value of pinfo->desegment_len to DESEGMENT_ONE_MORE_SEGMENT rather than the current 1 or 2 seems to make everything work. (I'm kind of confused as to why the headers resassembly code already used DESEGMENT_ONE_MORE_SEGMENT and the body reassembly code did not). svn path=/trunk/; revision=22570
This commit is contained in:
parent
25f64f9d27
commit
969bb158f6
|
@ -266,7 +266,7 @@ req_resp_hdrs_do_reassembly(tvbuff_t *tvb, int offset, packet_info *pinfo,
|
|||
|
||||
if (reported_length_remaining < 1) {
|
||||
pinfo->desegment_offset = offset;
|
||||
pinfo->desegment_len = 1;
|
||||
pinfo->desegment_len = DESEGMENT_ONE_MORE_SEGMENT;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -277,7 +277,7 @@ req_resp_hdrs_do_reassembly(tvbuff_t *tvb, int offset, packet_info *pinfo,
|
|||
length_remaining >=
|
||||
reported_length_remaining) {
|
||||
pinfo->desegment_offset = offset;
|
||||
pinfo->desegment_len = 2;
|
||||
pinfo->desegment_len = DESEGMENT_ONE_MORE_SEGMENT;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -313,7 +313,7 @@ req_resp_hdrs_do_reassembly(tvbuff_t *tvb, int offset, packet_info *pinfo,
|
|||
length_remaining >=
|
||||
reported_length_remaining) {
|
||||
pinfo->desegment_offset = offset;
|
||||
pinfo->desegment_len = 1;
|
||||
pinfo->desegment_len = DESEGMENT_ONE_MORE_SEGMENT;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue