diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-11-23 20:05:58 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-11-23 20:06:38 (GMT) |
commit | 2c1104c7d78b9ac9a5611345f64c7b7ce4a167d7 (patch) | |
tree | a93a31a557e75889c367bf711ae7369715ad3621 | |
parent | 3c1a47964d8434262d2ad9285345fb884f2a839b (diff) | |
download | swift-contrib-2c1104c7d78b9ac9a5611345f64c7b7ce4a167d7.zip swift-contrib-2c1104c7d78b9ac9a5611345f64c7b7ce4a167d7.tar.bz2 |
Avoid segfault when using EXTERNAL.
-rw-r--r-- | Swiften/Client/ClientSession.cpp | 2 |
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 { |