From eab486138381a5e27c3de809f82c957fda5a8513 Mon Sep 17 00:00:00 2001 From: denk-mal Date: Thu, 18 Jun 2015 12:58:28 +0200 Subject: [PATCH] Call Init for request and response object to avoid crashes on first plugin contact --- src/http/Protocol.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/http/Protocol.cpp b/src/http/Protocol.cpp index 811041e41..05ea80e29 100644 --- a/src/http/Protocol.cpp +++ b/src/http/Protocol.cpp @@ -117,6 +117,7 @@ Request::Request(): m_requestType(INVALID), m_cipher(SymmetricCipher::Aes256, SymmetricCipher::Cbc, SymmetricCipher::Decrypt) { + m_cipher.init(); } QString Request::nonce() const @@ -286,6 +287,7 @@ Response::Response(const Request &request, QString hash): m_hash(hash), m_cipher(SymmetricCipher::Aes256, SymmetricCipher::Cbc, SymmetricCipher::Encrypt) { + m_cipher.init(); } void Response::setVerifier(QString key)