From: Michael Schuster Date: Sun, 8 Dec 2019 00:56:15 +0000 (+0100) Subject: Fix Windows key-chunk deletion (too paranoid) X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~503 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b15eb27aa9c95c5f3d370297c412b339dfda5639;p=nextcloud-desktop.git Fix Windows key-chunk deletion (too paranoid) Clear the key chunk buffer, but don't set _clientSslKeyChunkCount to zero because we need it later for deleteKeychainEntries Signed-off-by: Michael Schuster --- diff --git a/src/gui/creds/webflowcredentials.cpp b/src/gui/creds/webflowcredentials.cpp index 073a0c996..25da56783 100644 --- a/src/gui/creds/webflowcredentials.cpp +++ b/src/gui/creds/webflowcredentials.cpp @@ -586,7 +586,7 @@ void WebFlowCredentials::slotReadClientKeyPEMJobDone(QKeychain::Job *incomingJob if (_clientSslKey.isNull()) { qCWarning(lcWebFlowCredentials) << "Could not load SSL key into Qt!"; } - _clientSslKeyChunkCount = 0; + // clear key chunk buffer, but don't set _clientSslKeyChunkCount to zero because we need it for deleteKeychainEntries _clientSslKeyChunkBufferPEM.clear(); }