summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/connection.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-01-26 20:59:45 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-01-26 20:59:45 +0000
commite64e17858c88e0b8302a34cebc02be0019422947 (patch)
treebe3c6510a0f7453c731286c5778547b00d469baa /protocols/WhatsApp/src/connection.cpp
parent0acc48076d8b2148d60d8a2532753c1eb06de276 (diff)
minus another shitty new
git-svn-id: http://svn.miranda-ng.org/main/trunk@11920 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/connection.cpp')
-rw-r--r--protocols/WhatsApp/src/connection.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/WhatsApp/src/connection.cpp b/protocols/WhatsApp/src/connection.cpp
index d911bc31a4..c4ed44c7dd 100644
--- a/protocols/WhatsApp/src/connection.cpp
+++ b/protocols/WhatsApp/src/connection.cpp
@@ -90,9 +90,7 @@ void WhatsAppProto::stayConnectedLoop(void*)
{
WALogin login(m_pConnection, password);
- std::vector<unsigned char> *nextChallenge = login.login(*this->challenge);
- delete this->challenge;
- this->challenge = nextChallenge;
+ m_Challenge = login.login(m_Challenge);
m_pConnection->setLogin(&login);
}
m_pConnection->nick = this->nick;