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@g10code.com>
This commit is contained in:
Neal H. Walfield 2016-09-16 15:32:03 +02:00
parent 3825847300
commit 6e930f0e40
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}