]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
remove port setup in ssl connect
authorLukáš Karas <lukas.karas@centrum.cz>
Sat, 14 Nov 2020 19:15:40 +0000 (20:15 +0100)
committerLukáš Karas <lukas.karas@centrum.cz>
Sat, 14 Nov 2020 19:20:32 +0000 (20:20 +0100)
Signed-off-by: Lukas Karas <lukas.karas@centrum.cz>
ssl.c

diff --git a/ssl.c b/ssl.c
index 7d277c3e01d9f640ed9c302bd8aaabb0476ef504..3bac52163caf4ea609c5a073bc7256d09ecf31b3 100644 (file)
--- a/ssl.c
+++ b/ssl.c
@@ -207,9 +207,6 @@ int connect_https_socket(struct openconnect_info *vpninfo)
        int ssl_sock = -1;
        int err;
 
-       if (!vpninfo->port)
-               vpninfo->port = 443;
-
        /* If we're talking to a server which told us it has dynamic DNS, don't
           just re-use its previous IP address. If we're talking to a proxy, we
           can use *its* previous IP address. We expect it'll re-do the DNS