X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcipher.cpp;h=15a986b25e2bd7f502a8f303af58a86d1330ab36;hp=5ca3129385dfdd994ee8480715b4ff35954ba0e9;hb=3146ad01b5b29c30adcf0044a52b39aa7e5796d0;hpb=0e1b154f362e13c2c9009f842e3fd6d8e7c346fc diff --git a/src/core/cipher.cpp b/src/core/cipher.cpp index 5ca31293..15a986b2 100644 --- a/src/core/cipher.cpp +++ b/src/core/cipher.cpp @@ -35,8 +35,10 @@ Cipher::~Cipher() bool Cipher::setKey(QByteArray key) { - if (key.isEmpty()) + if (key.isEmpty()) { + m_key.clear(); return false; + } if (key.mid(0, 4).toLower() == "ecb:") {