sequoia: Stop once we've decrypted the session key. sync
authorNeal H. Walfield <neal@pep.foundation>
Thu, 21 Mar 2019 14:35:14 +0100
branchsync
changeset 3371a9c437dd9eff
parent 3370 2d309924ea61
child 3372 ead25cd77c67
sequoia: Stop once we've decrypted the session key.
src/pgp_sequoia.c
     1.1 --- a/src/pgp_sequoia.c	Thu Mar 21 14:33:56 2019 +0100
     1.2 +++ b/src/pgp_sequoia.c	Thu Mar 21 14:35:14 2019 +0100
     1.3 @@ -963,6 +963,7 @@
     1.4  
     1.5                  *secret = pgp_secret_cached(algo, session_key, session_key_len);
     1.6                  cookie->decrypted = 1;
     1.7 +                break;
     1.8              }
     1.9  
    1.10              pgp_tpk_key_iter_free(key_iter);