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:
parent
b718128b4f
commit
e2cb2fa2e3
@ -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>
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user