From c83816ce06203cbe04bf420182b59264978acbe8 Mon Sep 17 00:00:00 2001 From: Sergey Abramchuk Date: Thu, 16 Mar 2017 20:09:08 +0300 Subject: [PATCH] Discard username and password after disconnection --- OpenVPN Adapter/OpenVPNAdapter.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenVPN Adapter/OpenVPNAdapter.mm b/OpenVPN Adapter/OpenVPNAdapter.mm index b72e1e5..0d886ab 100644 --- a/OpenVPN Adapter/OpenVPNAdapter.mm +++ b/OpenVPN Adapter/OpenVPNAdapter.mm @@ -391,6 +391,9 @@ static void socketCallback(CFSocketRef socket, CFSocketCallBackType type, CFData OpenVPNClient::uninit_process(); self.tunConfiguration = nil; + self.username = nil; + self.password = nil; + if (self.vpnSocket) { CFSocketInvalidate(self.vpnSocket); CFRelease(self.vpnSocket);