aboutsummaryrefslogtreecommitdiffstats
path: root/g10/tofu.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/tofu.c')
-rw-r--r--g10/tofu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/tofu.c b/g10/tofu.c
index 21a54bcaf..9b21d86ce 100644
--- a/g10/tofu.c
+++ b/g10/tofu.c
@@ -2096,6 +2096,8 @@ tofu_register (const byte *fingerprint_bin, const char *user_id,
unsigned long c;
int already_verified = 0;
+ sig_digest = make_radix64_string (sig_digest_bin, sig_digest_bin_len);
+
dbs = opendbs ();
if (! dbs)
{
@@ -2128,8 +2130,6 @@ tofu_register (const byte *fingerprint_bin, const char *user_id,
}
/* Save the observed signature in the DB. */
- sig_digest = make_radix64_string (sig_digest_bin, sig_digest_bin_len);
-
db = getdb (dbs, email, DB_EMAIL);
if (! db)
{