[Pkg-gnupg-commit] [gnupg2] 07/292: g10: On failure, propagate the return code.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Mon Nov 21 06:31:20 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit 6e930f0e4077bc7aa3d28b1ba649a82d62427d87
Author: Neal H. Walfield <neal at g10code.com>
Date: Fri Sep 16 15:32:03 2016 +0200
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 <neal at g10code.com>
---
g10/tofu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/g10/tofu.c b/g10/tofu.c
index 6817303..e6a3429 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;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list