Do not try to get audit log for erroneous contexts

Review Request #124175 - Created June 25, 2015 and submitted

Information
Andre Heinecke
kdepim
KDE/4.14
347856
Reviewers
kdepim

On error gpgme closes the assuan context of the gpgme context.
Calling getAuditLog on a closed context leads to a crash. (At least with gpgme 1.5.5)

It's likely that previous versions of gpgme handled this more gracefully. But the behavior is undefined.

Looking at an S/MIME Encrypted mail for which I did not have the key triggered this reliably.
The crash can also be reproduced by canceling the pinentry dialog when decrypting an S/MIME mail.

Allen Winter
Andre Heinecke
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit be886ddf9397ab1ee40a075a1ee34c5c42dea038 by Andre Heinecke to branch KDE/4.14.
Loading...