Merged in ENGINE-459
authorKrista Bennett <krista@pep-project.org>
Fri, 05 Oct 2018 13:30:37 +0200
changeset 30128d403b2d2af0
parent 3006 efaf2b690867
parent 3011 a64991e4c87c
child 3014 1a1b08d88886
Merged in ENGINE-459
     1.1 --- a/src/keymanagement.c	Fri Oct 05 11:22:02 2018 +0200
     1.2 +++ b/src/keymanagement.c	Fri Oct 05 13:30:37 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