sequoia: Fix return code when nothing is imported by pgp_import_keydata sync
authorNeal H. Walfield <neal@pep.foundation>
Fri, 10 May 2019 09:12:39 +0200
branchsync
changeset 3658733edb269d7d
parent 3657 ee9abaa0e34b
child 3659 bd1c82a4f0ff
sequoia: Fix return code when nothing is imported by pgp_import_keydata
src/pgp_sequoia.c
     1.1 --- a/src/pgp_sequoia.c	Fri May 10 09:11:59 2019 +0200
     1.2 +++ b/src/pgp_sequoia.c	Fri May 10 09:12:39 2019 +0200
     1.3 @@ -1640,7 +1640,7 @@
     1.4  PEP_STATUS pgp_import_keydata(PEP_SESSION session, const char *key_data,
     1.5                                size_t size, identity_list **private_idents)
     1.6  {
     1.7 -    PEP_STATUS status = PEP_STATUS_OK;
     1.8 +    PEP_STATUS status = PEP_NO_KEY_IMPORTED;
     1.9      pgp_error_t err;
    1.10      pgp_tpk_parser_t parser = NULL;
    1.11