forked from osmocom/wireshark
HTTP: revert a change done in g0ee179c
As indicated in the comment above, the previous code was done on purpose to handle the NUL case Bug: 10866 Change-Id: I66eb9f6fbc9477456310978b420ba30975d81b0a Reviewed-on: https://code.wireshark.org/review/6621 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
parent
2660806145
commit
b01ef11f87
|
@ -2420,7 +2420,9 @@ process_header(tvbuff_t *tvb, int offset, int next_offset,
|
|||
* has value_len bytes in it.
|
||||
*/
|
||||
value_len = line_end_offset - value_offset;
|
||||
value = wmem_strndup(wmem_packet_scope(), &line[value_offset - offset], value_len);
|
||||
value = (char *)wmem_alloc(wmem_packet_scope(), value_len+1);
|
||||
memcpy(value, &line[value_offset - offset], value_len);
|
||||
value[value_len] = '\0';
|
||||
|
||||
if (hf_index == -1) {
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue