HTTP: Fix dissection of data following the HTTP Upgrade response
authorPeter Wu <peter@lekensteyn.nl>
Sat, 21 Dec 2019 14:54:46 +0000 (15:54 +0100)
committerPeter Wu <peter@lekensteyn.nl>
Tue, 31 Dec 2019 17:24:47 +0000 (17:24 +0000)
commite9014030fe2dc5926a7e7e8d9f29bf1ebcf6b6bd
tree3c8f532ae837e51232eaebdd4ac83b3a9de22904
parentf8aa0d5c025d085212aa345a81f56dbace4c54c4
HTTP: Fix dissection of data following the HTTP Upgrade response

When a HTTP response includes HTTP headers and a subset of data for the
subdissector in the same frame, be sure to skip the HTTP headers for
reassembly of the latter data. Otherwise the HTTP headers will be
misinterpreted as the subprotocol (for example, WebSocket).

Bug: 16274
Change-Id: Ida6f6f2f7d0c463be2d498bfde5e8a9cd11a4b25
Reviewed-on: https://code.wireshark.org/review/35536
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
epan/dissectors/packet-http.c