aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/loadswdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'dirmngr/loadswdb.c')
-rw-r--r--dirmngr/loadswdb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/dirmngr/loadswdb.c b/dirmngr/loadswdb.c
index bc56c2ab3..2d6bdc126 100644
--- a/dirmngr/loadswdb.c
+++ b/dirmngr/loadswdb.c
@@ -272,7 +272,10 @@ dirmngr_load_swdb (ctrl_t ctrl, int force)
/* Create the filename of the file with the keys. */
keyfile_fname = make_filename_try (gnupg_datadir (), "distsigkey.gpg", NULL);
if (!keyfile_fname)
- goto leave;
+ {
+ err = gpg_error_from_syserror ();
+ goto leave;
+ }
/* Fetch the swdb from the web. */
err = fetch_file (ctrl, "https://versions.gnupg.org/swdb.lst", &swdb);