diff options
Diffstat (limited to 'protocols/WhatsApp/src/connection.cpp')
-rw-r--r-- | protocols/WhatsApp/src/connection.cpp | 4 |
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;
|