mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Fix 2 compiler warnings.
* dirmngr/loadswdb.c: Set ERR on malloc failure. * g10/passphrase.c (passphrase_to_dek): Initialize all fields of HELP_S2K. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
4a04277ad1
commit
cb4c7abb77
2 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue