summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko2018-11-13 12:00:19 +0100
committerDenys Vlasenko2018-11-13 12:00:19 +0100
commitdbe95682b4bf1192d2860646617f157e6c44f2d1 (patch)
tree78cad321197709b2d9dff61de6b84e9f587eb4b2 /networking
parentd5a0405a6fa2d17bf86e059dfc35efcba52f120c (diff)
downloadbusybox-dbe95682b4bf1192d2860646617f157e6c44f2d1.zip
busybox-dbe95682b4bf1192d2860646617f157e6c44f2d1.tar.gz
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>
Diffstat (limited to 'networking')
-rw-r--r--networking/wget.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/wget.c b/networking/wget.c
index 33c93ba..a9a0f5f 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -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, ':');