diff options
author | Saturneric <[email protected]> | 2021-12-15 18:29:46 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-12-16 09:36:19 +0000 |
commit | 51259403d70cb69c2fbd2b38794867f0b60bcf35 (patch) | |
tree | ecbaffef748db326f00ac58f757e5e824b61d52e /src/gpg/function/BasicOperator.cpp | |
parent | SMTP Support Added. (diff) | |
download | GpgFrontend-51259403d70cb69c2fbd2b38794867f0b60bcf35.tar.gz GpgFrontend-51259403d70cb69c2fbd2b38794867f0b60bcf35.zip |
Added & Improved & Fixed.
Fixed Bugs in core.
Improved Send Mail & Keyserver Settings.
Added Pubkey Sync for key list.
Added Refresh for key list.
Improved Send Mail and others.
Known Bugs Fixed.
Diffstat (limited to 'src/gpg/function/BasicOperator.cpp')
-rw-r--r-- | src/gpg/function/BasicOperator.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gpg/function/BasicOperator.cpp b/src/gpg/function/BasicOperator.cpp index f91282c4..ee59ff37 100644 --- a/src/gpg/function/BasicOperator.cpp +++ b/src/gpg/function/BasicOperator.cpp @@ -217,8 +217,11 @@ gpg_error_t GpgFrontend::BasicOperator::EncryptSymmetric( auto temp_data_out = data_out.Read2Buffer(); std::swap(temp_data_out, out_buffer); - auto temp_result = GpgEncrResult(gpgme_op_encrypt_result(ctx)); - std::swap(result, temp_result); + // TODO(Saturneric): maybe a bug of gpgme + if (gpgme_err_code(err) == GPG_ERR_NO_ERROR) { + auto temp_result = GpgEncrResult(gpgme_op_encrypt_result(ctx)); + std::swap(result, temp_result); + } return err; } |