diff options
Diffstat (limited to 'gpgme/keylist.c')
| -rw-r--r-- | gpgme/keylist.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/gpgme/keylist.c b/gpgme/keylist.c index 9d7824bb..11e10cf2 100644 --- a/gpgme/keylist.c +++ b/gpgme/keylist.c @@ -341,10 +341,12 @@ finish_key ( GpgmeCtx ctx )  {      GpgmeKey key = ctx->tmp_key;      struct key_queue_item_s *q, *q2; -     +      assert (key);      ctx->tmp_key = NULL; -     + +    _gpgme_key_cache_add (key); +      q = xtrymalloc ( sizeof *q );      if ( !q ) {          gpgme_key_release (key); | 
