diff options
author | Neal H. Walfield <[email protected]> | 2016-09-16 13:32:03 +0000 |
---|---|---|
committer | Neal H. Walfield <[email protected]> | 2016-09-16 13:35:21 +0000 |
commit | 6e930f0e4077bc7aa3d28b1ba649a82d62427d87 (patch) | |
tree | b651f69bd869f13c29592df0bd954239c87b5637 | |
parent | g10: Improve some comments and a string. (diff) | |
download | gnupg-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.c | 1 |
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; } |