src/keymanagement.c
branchENGINE-250
changeset 2483 7fb3205f2893
parent 2478 0460dfb7f3dc
child 2493 a4fd5af7fde1
     1.1 --- a/src/keymanagement.c	Wed Feb 07 16:16:40 2018 +0100
     1.2 +++ b/src/keymanagement.c	Wed Feb 07 16:42:56 2018 +0100
     1.3 @@ -1071,6 +1071,10 @@
     1.4          // identity set yet, this is important, as we need to record the mistrust
     1.5          // action)
     1.6          
     1.7 +        // double-check to be sure key is even in the DB
     1.8 +        if (ident->fpr)
     1.9 +            status = set_pgp_keypair(session, ident->fpr);
    1.10 +
    1.11          // We set this temporarily but will grab it back from the cache afterwards
    1.12          ident->comm_type = PEP_ct_mistrusted;
    1.13          status = set_trust(session, ident);