From f75bc34480d0466746961509587faa52bac631fc Mon Sep 17 00:00:00 2001 From: Daniel Lenski Date: Wed, 22 May 2019 11:55:59 -0700 Subject: [PATCH] gpst.c should also return -EPERM when server changes IP address, not -EINVAL (see previous commit by David Woodhouse, 24df3311ab42f062dbf1aeb7f3432dd45426e9cf, which did this for cstp.c) Signed-off-by: Daniel Lenski --- gpst.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpst.c b/gpst.c index a3266877..b437a60c 100644 --- a/gpst.c +++ b/gpst.c @@ -679,7 +679,7 @@ static int gpst_get_config(struct openconnect_info *vpninfo) vpn_progress(vpninfo, PRG_ERR, _("Reconnect gave different Legacy IP address (%s != %s)\n"), vpninfo->ip_info.addr, old_addr); - result = -EINVAL; + result = -EPERM; goto out; } } @@ -688,7 +688,7 @@ static int gpst_get_config(struct openconnect_info *vpninfo) vpn_progress(vpninfo, PRG_ERR, _("Reconnect gave different Legacy IP netmask (%s != %s)\n"), vpninfo->ip_info.netmask, old_netmask); - result = -EINVAL; + result = -EPERM; goto out; } } -- 2.49.0