diff options
author | Alexey Edelev <semlanik@gmail.com> | 2019-03-28 11:58:04 +0100 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2019-03-29 14:31:31 +0000 |
commit | 20b7e18146e28e73cba52a63a3415c6828f1f6f5 (patch) | |
tree | cec9ab0c4d61a6c91360cd0a58f16267845e7c28 /src/3rdparty/libjpeg/src/jdatasrc.c | |
parent | 743e883c12edcc1d5e22a50eea4f7f28fc7b8188 (diff) |
Fix a crash in QHttp2ProtocolHandler in h2c-direct mode
After 'h2c' mode was implemented with the proper protocol
upgrade, the previously working 'direct connection' mode
was lost for clear text connections due to the erroneous
logic in the constructor: having !channel->ssl does not
necessary mean we started with HTTP/1.1 request, including
protocol upgrade header; it can also mean we connected a
plain socket and immediately sending h2 frames, without
any H2 negotiation at all.
Fixes: QTBUG-74765
Change-Id: Ice466d6bffb40048b7ab46fb064f2d3d795a12aa
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/3rdparty/libjpeg/src/jdatasrc.c')
0 files changed, 0 insertions, 0 deletions