diff --git a/lang/cpp/src/key.cpp b/lang/cpp/src/key.cpp index 4638fd86..4b370207 100644 --- a/lang/cpp/src/key.cpp +++ b/lang/cpp/src/key.cpp @@ -362,10 +362,9 @@ void Key::update() Error err; auto newKey = ctx->key(primaryFingerprint(), err, true); // Not secret so we get the information from the pubring. - if (newKey.isNull()) - { + if (newKey.isNull()) { newKey = ctx->key(primaryFingerprint(), err, false); - } + } delete ctx; if (err) { return;