wget: print "TLS certificate validation not implemented" only once on redirects

function                                             old     new   delta
spawn_ssl_client                                     209     219     +10

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2018-11-13 12:00:19 +01:00
parent d5a0405a6f
commit dbe95682b4

View File

@ -716,8 +716,10 @@ static void spawn_ssl_client(const char *host, int network_fd, int flags)
int pid;
char *servername, *p;
if (!(option_mask32 & WGET_OPT_NO_CHECK_CERT))
if (!(option_mask32 & WGET_OPT_NO_CHECK_CERT)) {
bb_error_msg("note: TLS certificate validation not implemented");
option_mask32 |= WGET_OPT_NO_CHECK_CERT;
}
servername = xstrdup(host);
p = strrchr(servername, ':');