tls: code shrink
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 14 Nov 2018 10:35:36 +0000 (11:35 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 14 Nov 2018 10:35:36 +0000 (11:35 +0100)
function                                             old     new   delta
spawn_ssl_client                                     219     218      -1

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/wget.c

index a9a0f5f8cb14e097c7bd3c42446d5819d11251ff..65262e19d47f1a1c0557b3400c41d0c0b3c6b430 100644 (file)
@@ -717,8 +717,8 @@ static void spawn_ssl_client(const char *host, int network_fd, int flags)
        char *servername, *p;
 
        if (!(option_mask32 & WGET_OPT_NO_CHECK_CERT)) {
-               bb_error_msg("note: TLS certificate validation not implemented");
                option_mask32 |= WGET_OPT_NO_CHECK_CERT;
+               bb_error_msg("note: TLS certificate validation not implemented");
        }
 
        servername = xstrdup(host);