1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

don't error if CA directory is empty

This commit is contained in:
Tim Ruehsen 2012-08-28 16:58:40 +02:00 committed by Giuseppe Scrivano
parent b718128b4f
commit e2cb2fa2e3
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
2012-08-28 Tim Ruehsen <tim.ruehsen@gmx.de>
* gnutls.c (ssl_check_certificate): deinit gnutls_x509_crt_t.
* gnutls.c (ssl_init): don't error if CA directory is empty.
2012-07-07 Giuseppe Scrivano <gscrivano@gnu.org>

View File

@ -99,7 +99,7 @@ ssl_init (void)
dir = opendir (ca_directory);
if (dir == NULL)
{
if (opt.ca_directory)
if (opt.ca_directory && *opt.ca_directory)
logprintf (LOG_NOTQUIET, _("ERROR: Cannot open directory %s.\n"),
opt.ca_directory);
}