aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2016-09-16 13:32:03 +0000
committerNeal H. Walfield <[email protected]>2016-09-16 13:35:21 +0000
commit6e930f0e4077bc7aa3d28b1ba649a82d62427d87 (patch)
treeb651f69bd869f13c29592df0bd954239c87b5637
parentg10: Improve some comments and a string. (diff)
downloadgnupg-6e930f0e4077bc7aa3d28b1ba649a82d62427d87.tar.gz
gnupg-6e930f0e4077bc7aa3d28b1ba649a82d62427d87.zip
g10: On failure, propagate the return code.
* g10/tofu.c (tofu_register_encryption): If get_trust fails, set RC. -- Signed-off-by: Neal H. Walfield <[email protected]>
-rw-r--r--g10/tofu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/tofu.c b/g10/tofu.c
index 681730320..e6a3429e3 100644
--- a/g10/tofu.c
+++ b/g10/tofu.c
@@ -3072,6 +3072,7 @@ tofu_register_encryption (ctrl_t ctrl,
if (tl == _tofu_GET_TRUST_ERROR)
{
/* An error. */
+ rc = gpg_error (GPG_ERR_GENERAL);
xfree (email);
goto die;
}