The openconnect program will exit with a value of 1 not only when there was
a network error, but also when erroneous authentication information is
given. Therefore indicate authentication error also in this case causing
the authentication information to be cleaned up.
---
 vpn/plugins/openconnect.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/vpn/plugins/openconnect.c b/vpn/plugins/openconnect.c
index c6b9cd6..5feaed9 100644
--- a/vpn/plugins/openconnect.c
+++ b/vpn/plugins/openconnect.c
@@ -552,7 +552,6 @@ static int oc_error_code(struct vpn_provider *provider, int 
exit_code)
 
        switch (exit_code) {
        case 1:
-               return VPN_PROVIDER_ERROR_CONNECT_FAILED;
        case 2:
                vpn_provider_set_string_hide_value(provider,
                                "OpenConnect.Cookie", NULL);
-- 
1.9.1

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to