This in turn allows the server to signal to the client that it
should no longer attempt to reconnect, if it wants to keep the
client out after an AUTH_FAILED.

Signed-off-by: Razvan Cojocaru <rzv...@gmail.com>
---
 src/openvpn/misc.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/openvpn/misc.c b/src/openvpn/misc.c
index 70ba5e4d..82ac8056 100644
--- a/src/openvpn/misc.c
+++ b/src/openvpn/misc.c
@@ -524,6 +524,11 @@ set_auth_token(struct user_pass *tk, const char *token)
         }
         protect_user_pass(tk);
     }
+    else
+    {
+        tk->defined = false;
+        tk->token_defined = false;
+    }
 }
 
 void
-- 
2.47.0



_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to