summaryrefslogtreecommitdiff
path: root/protocols/JabberG
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-02-10 18:43:40 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-02-10 18:43:40 +0300
commit8d9fb2ecdca01805f3a1db7e89a6873286efb898 (patch)
treef915e58d30e6f0a85239a3124d998423f5e57195 /protocols/JabberG
parent529c9641612e912e05161fd928ce62169c753daa (diff)
fixes #4187 (Jabber: cannot connect after update)
Diffstat (limited to 'protocols/JabberG')
-rw-r--r--protocols/JabberG/src/jabber_secur.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_secur.cpp b/protocols/JabberG/src/jabber_secur.cpp
index 37fd4b6c42..104c225504 100644
--- a/protocols/JabberG/src/jabber_secur.cpp
+++ b/protocols/JabberG/src/jabber_secur.cpp
@@ -242,6 +242,7 @@ char* TScramAuth::getInitialRequest()
Utils_GetRandom(nonce, sizeof(nonce));
cnonce = mir_base64_encode(nonce, sizeof(nonce));
+ bindFlag = "n,,";
if ((priority % 10) == 1) {
if (info->proto->m_bTlsExporter) {
int cbLen, tlsVer = true;
@@ -253,7 +254,6 @@ char* TScramAuth::getInitialRequest()
bindData.append(pData, cbLen);
}
}
- else bindFlag = "n,,";
CMStringA buf(FORMAT, "n=%s,r=%s", info->conn.username, cnonce);
msg1 = mir_strdup(buf);