From a5dd38ec8549d28902ec4a2f7a57fa6c395de4e6 Mon Sep 17 00:00:00 2001 From: Jeremy Visser Date: Fri, 14 Feb 2014 23:32:47 +1100 Subject: [PATCH] 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 --- cstp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.51.0