aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Kibbey <[email protected]>2015-08-11 01:23:02 +0000
committerBen Kibbey <[email protected]>2015-08-11 01:23:02 +0000
commit8f28e3caf95d7bc99e9271bfc2b44080166af31f (patch)
treede492d78da17e1e049c0bedff491fae6199c02d7
parentAdd offline mode support for CMS keylisting (diff)
downloadgpgme-8f28e3caf95d7bc99e9271bfc2b44080166af31f.tar.gz
gpgme-8f28e3caf95d7bc99e9271bfc2b44080166af31f.zip
Check the return value when starting gpg.
* src/engine-gpg.c (gpg_decrypt, gpg_delete, gpg_passwd): Check return value of start().
-rw-r--r--src/engine-gpg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine-gpg.c b/src/engine-gpg.c
index 510dfd9d..c3e36aeb 100644
--- a/src/engine-gpg.c
+++ b/src/engine-gpg.c
@@ -1456,7 +1456,7 @@ gpg_decrypt (void *engine, gpgme_data_t ciph, gpgme_data_t plain)
err = add_data (gpg, ciph, -1, 0);
if (!err)
- start (gpg);
+ err = start (gpg);
return err;
}
@@ -1479,7 +1479,7 @@ gpg_delete (void *engine, gpgme_key_t key, int allow_secret)
}
if (!err)
- start (gpg);
+ err = start (gpg);
return err;
}
@@ -1497,7 +1497,7 @@ gpg_passwd (void *engine, gpgme_key_t key, unsigned int flags)
if (!err)
err = add_arg (gpg, key->subkeys->fpr);
if (!err)
- start (gpg);
+ err = start (gpg);
return err;
}