summaryrefslogtreecommitdiff
path: root/tests/test_main.h
diff options
context:
space:
mode:
authorPedro Rodrigues <pedro@onimail.net>2021-03-01 21:38:16 +0000
committerPedro Rodrigues <pedro@onimail.net>2021-03-03 21:00:30 +0000
commita3a731ed92aec7a7a99b369d84d9f11fcbec5642 (patch)
tree27c3ea27727e7c4076e1b696ac716df71f4872e1 /tests/test_main.h
parent864caf571164dea655a7c1f9d9b423195653dee2 (diff)
Fix crash on HTTPClient::poll method
The problem happened because `poll` assumed that when the SSL flag was true, the `connection` would be a subclass of StreamPeerSSL. However that invariant could be broken by calling HTTPClient::set_connection with a `connection` that is not a subclass of StreamPeerSSL. Fixes #46138
Diffstat (limited to 'tests/test_main.h')
0 files changed, 0 insertions, 0 deletions