Netmask is optional
authorDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 3 Nov 2009 18:51:48 +0000 (18:51 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 3 Nov 2009 19:06:45 +0000 (19:06 +0000)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
cstp.c

diff --git a/cstp.c b/cstp.c
index 1bba405..e5736da 100644 (file)
--- a/cstp.c
+++ b/cstp.c
@@ -269,8 +269,6 @@ static int start_cstp_connection(struct openconnect_info *vpninfo)
                vpninfo->progress(vpninfo, PRG_ERR, "No IP address received. Aborting\n");
                return -EINVAL;
        }
-       if (vpninfo->vpn_addr && !vpninfo->vpn_netmask)
-               vpninfo->vpn_netmask = "255.255.255.255";
        if (old_addr) {
                if (strcmp(old_addr, vpninfo->vpn_addr)) {
                        vpninfo->progress(vpninfo, PRG_ERR, "Reconnect gave different Legacy IP address (%s != %s)\n",