summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-11-23 20:05:58 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-11-23 20:06:38 (GMT)
commit2c1104c7d78b9ac9a5611345f64c7b7ce4a167d7 (patch)
treea93a31a557e75889c367bf711ae7369715ad3621
parent3c1a47964d8434262d2ad9285345fb884f2a839b (diff)
downloadswift-contrib-2c1104c7d78b9ac9a5611345f64c7b7ce4a167d7.zip
swift-contrib-2c1104c7d78b9ac9a5611345f64c7b7ce4a167d7.tar.bz2
Avoid segfault when using EXTERNAL.
-rw-r--r--Swiften/Client/ClientSession.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Client/ClientSession.cpp b/Swiften/Client/ClientSession.cpp
index 960af70..61ce8ef 100644
--- a/Swiften/Client/ClientSession.cpp
+++ b/Swiften/Client/ClientSession.cpp
@@ -132,7 +132,7 @@ void ClientSession::handleElement(boost::shared_ptr<Element> element) {
}
else if (AuthSuccess* authSuccess = dynamic_cast<AuthSuccess*>(element.get())) {
checkState(Authenticating);
- if (!authenticator->setChallenge(authSuccess->getValue())) {
+ if (authenticator && !authenticator->setChallenge(authSuccess->getValue())) {
finishSession(Error::ServerVerificationFailedError);
}
else {