Also check the return code in gpg_sign().
authorBen Kibbey <bjk@luxsci.net>
Wed, 12 Aug 2015 10:46:43 +0000 (06:46 -0400)
committerBen Kibbey <bjk@luxsci.net>
Wed, 12 Aug 2015 10:46:43 +0000 (06:46 -0400)
* src/engine-gpg.c (gpg_sign): Check return value from start().

src/engine-gpg.c

index c3e36ae..d138592 100644 (file)
@@ -2364,7 +2364,7 @@ gpg_sign (void *engine, gpgme_data_t in, gpgme_data_t out,
     err = add_data (gpg, out, 1, 1);
 
   if (!err)
-    start (gpg);
+    err = start (gpg);
 
   return err;
 }