summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_strm_mgmt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/src/jabber_strm_mgmt.cpp')
-rwxr-xr-xprotocols/JabberG/src/jabber_strm_mgmt.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber_strm_mgmt.cpp b/protocols/JabberG/src/jabber_strm_mgmt.cpp
index 151de8203e..1fcd6e3ac3 100755
--- a/protocols/JabberG/src/jabber_strm_mgmt.cpp
+++ b/protocols/JabberG/src/jabber_strm_mgmt.cpp
@@ -268,8 +268,7 @@ bool strm_mgmt::IsResumeIdPresent()
void strm_mgmt::FinishLoginProcess(ThreadData *info)
{
-
- if (info->auth) { //We are already logged-in
+ if (proto->m_arAuthMechs.getCount()) { //We are already logged-in
info->send(
XmlNodeIq(proto->AddIQ(&CJabberProto::OnIqResultBind, JABBER_IQ_TYPE_SET))
<< XCHILDNS("bind", JABBER_FEAT_BIND)
@@ -281,6 +280,6 @@ void strm_mgmt::FinishLoginProcess(ThreadData *info)
return;
}
- //mechanisms not available and we are not logged in
+ // mechanisms not available and we are not logged in
proto->PerformIqAuth(info);
}