Skip to content

Commit

Permalink
go to readonly mode when she is missing keys
Browse files Browse the repository at this point in the history
  • Loading branch information
comotion committed Aug 16, 2012
1 parent 18024ab commit 1ae406b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gpg.c
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,8 @@ int gpgGetRecipients(gpgme_recipient_t recipients,
_("unknown recipient id %s"), recipient -> keyid);
(showerror_cb)(_("GpgMe recipient error"), tmpbuffer);
memFree(__FILE__, __LINE__, tmpbuffer, STDBUFFERLENGTH);
/* user shouldn't write db when she is missing keys */
runtime->readonly = 1;
}

recipient = recipient -> next;
Expand Down

0 comments on commit 1ae406b

Please sign in to comment.