From 8d9fb2ecdca01805f3a1db7e89a6873286efb898 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 10 Feb 2024 18:43:40 +0300 Subject: fixes #4187 (Jabber: cannot connect after update) --- protocols/JabberG/src/jabber_secur.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/JabberG/src') 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); -- cgit v1.2.3