mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
* trustlist.c (read_trustfiles): Take a missing trustlist as an
empty one.
This commit is contained in:
parent
3bbc481935
commit
61bcf36235
@ -1,3 +1,8 @@
|
|||||||
|
2007-04-03 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
|
* trustlist.c (read_trustfiles): Take a missing trustlist as an
|
||||||
|
empty one.
|
||||||
|
|
||||||
2007-03-20 Werner Koch <wk@g10code.com>
|
2007-03-20 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* protect-tool.c: New option --p12-charset.
|
* protect-tool.c: New option --p12-charset.
|
||||||
|
@ -275,7 +275,7 @@ read_one_trustfile (const char *fname, int allow_include,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Read the trust files and update the global table on success. */
|
/* Read the trust files and update the global table on success. */
|
||||||
static gpg_error_t
|
static gpg_error_t
|
||||||
read_trustfiles (void)
|
read_trustfiles (void)
|
||||||
{
|
{
|
||||||
@ -313,6 +313,16 @@ read_trustfiles (void)
|
|||||||
if (err)
|
if (err)
|
||||||
{
|
{
|
||||||
xfree (table);
|
xfree (table);
|
||||||
|
if (gpg_err_code (err) == GPG_ERR_ENOENT)
|
||||||
|
{
|
||||||
|
/* Take a missing trustlist as an empty one. */
|
||||||
|
lock_trusttable ();
|
||||||
|
xfree (trusttable);
|
||||||
|
trusttable = NULL;
|
||||||
|
trusttablesize = 0;
|
||||||
|
unlock_trusttable ();
|
||||||
|
err = 0;
|
||||||
|
}
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user