summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2017-04-04 08:40:40 (GMT)
committerTobias Markmann <tm@ayena.de>2017-04-04 09:53:23 (GMT)
commitac40889c5466314dd22def238449352a2a4cc67e (patch)
tree628e0da53dc453078ff7fbd45d0364215bc1ddb4 /Swiften/FileTransfer
parenteb84a2f12778572ca97bb7ff8749fd80e84b16d4 (diff)
downloadswift-ac40889c5466314dd22def238449352a2a4cc67e.zip
swift-ac40889c5466314dd22def238449352a2a4cc67e.tar.bz2
Add missing check for initialised pointer
Coverity raised this issue. Test-Information: All unit and integration tests, including the file-transfer tests, passed on macOS 10.12.4. Change-Id: I418358366478ad76e4eff4fb0a3559373931e111
Diffstat (limited to 'Swiften/FileTransfer')
-rw-r--r--Swiften/FileTransfer/LocalJingleTransportCandidateGenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/FileTransfer/LocalJingleTransportCandidateGenerator.cpp b/Swiften/FileTransfer/LocalJingleTransportCandidateGenerator.cpp
index 09b664f..834a401 100644
--- a/Swiften/FileTransfer/LocalJingleTransportCandidateGenerator.cpp
+++ b/Swiften/FileTransfer/LocalJingleTransportCandidateGenerator.cpp
@@ -168,7 +168,7 @@ void LocalJingleTransportCandidateGenerator::emitOnLocalTransportCandidatesGener
}
}
- if (options_.isProxiedAllowed() && s5bProxy->getOrDiscoverS5BProxies().is_initialized()) {
+ if (options_.isProxiedAllowed() && s5bProxy && s5bProxy->getOrDiscoverS5BProxies().is_initialized()) {
for (auto&& proxy : s5bProxy->getOrDiscoverS5BProxies().get()) {
if (proxy->getStreamHost()) { // FIXME: Added this test, because there were cases where this wasn't initialized. Investigate this. (Remko)
JingleS5BTransportPayload::Candidate candidate;