ENGINE-459: Well, that was easy. ENGINE-459
authorKrista Bennett <krista@pep-project.org>
Fri, 05 Oct 2018 13:29:50 +0200
branchENGINE-459
changeset 3011a64991e4c87c
parent 3006 efaf2b690867
child 3012 8d403b2d2af0
child 3013 3be13ca73273
ENGINE-459: Well, that was easy.
src/keymanagement.c
     1.1 --- a/src/keymanagement.c	Fri Oct 05 11:22:02 2018 +0200
     1.2 +++ b/src/keymanagement.c	Fri Oct 05 13:29:50 2018 +0200
     1.3 @@ -1171,7 +1171,12 @@
     1.4  
     1.5      if (ident->me)
     1.6      {
     1.7 -        revoke_key(session, ident->fpr, NULL);
     1.8 +        // See if key is revoked already
     1.9 +        bool revoked = false;
    1.10 +        status = key_revoked(session, ident->fpr, &revoked);
    1.11 +        if (!revoked)
    1.12 +            revoke_key(session, ident->fpr, NULL);
    1.13 +            
    1.14          myself(session, ident);
    1.15      }
    1.16      else