From: Jeremy Visser Date: Fri, 14 Feb 2014 12:32:47 +0000 (+1100) Subject: Assign Address-IP6 field to netmask instead of address X-Git-Tag: v5.99~35 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a5dd38ec8;p=users%2Fdwmw2%2Fopenconnect.git Assign Address-IP6 field to netmask instead of address The Address-IP6 field combines the address and netmask into one line, meaning it only makes sense in the netmask field. Fixes an error rather not dissimilar to the following: Error: an inet prefix is expected rather than "/64/128" Signed-off-by: Jeremy Visser Signed-off-by: David Woodhouse --- diff --git a/cstp.c b/cstp.c index c27a5725..fde14e63 100644 --- a/cstp.c +++ b/cstp.c @@ -379,7 +379,7 @@ static int start_cstp_connection(struct openconnect_info *vpninfo) if (cstpmtu > mtu) mtu = cstpmtu; } else if (!strcmp(buf + 7, "Address-IP6")) { - vpninfo->ip_info.addr6 = new_option->value; + vpninfo->ip_info.netmask6 = new_option->value; } else if (!strcmp(buf + 7, "Address")) { if (strchr(new_option->value, ':')) { if (!vpninfo->disable_ipv6)