gpg: Avoid endless loop in a tofu error case.
authorWerner Koch <wk@gnupg.org>
Tue, 14 Jun 2016 10:04:01 +0000 (12:04 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 14 Jun 2016 10:04:01 +0000 (12:04 +0200)
* g10/tofu.c (get_trust): Do not jump to out.
--

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/tofu.c

index 4b752f7..471aec6 100644 (file)
@@ -2258,7 +2258,7 @@ get_trust (tofu_dbs_t dbs, PKT_public_key *pk,
        {
          log_error (_("error changing TOFU policy: %s\n"), sqerr);
          sqlite3_free (sqerr);
-         goto out;  /* FIXME */
+          sqerr = NULL;
        }
     }