diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2021-12-03 13:35:52 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-12-10 21:51:54 +0000 |
commit | a6f5b79169991ffde38643d7b1a04d6a9de137bf (patch) | |
tree | 55bcf5352e283345fc3f3aedeae3c944db2e8587 /src/bluetooth/qbluetoothdevicediscoveryagent_p.cpp | |
parent | 6f7961e6da5d96aefe65256774b3b67faa247c20 (diff) |
QBluetoothSocket Windows: check that host info is available
If we try to query local or remote socket info (name, address, port)
before the connection is actually established, WinAPI will return
a null instance of HostInfo for both local and remote hosts.
This patch adds checks that these objects are not nullptrs before
extracting data from them.
Change-Id: I137f1270c1c7d95a1935cc8565cda6c9f7814292
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
(cherry picked from commit 45f9e9fcb054c28bc59f6cc480eb08e9b13e5f0f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/bluetooth/qbluetoothdevicediscoveryagent_p.cpp')
0 files changed, 0 insertions, 0 deletions