Discard username and password after disconnection

This commit is contained in:
Sergey Abramchuk
2017-03-16 20:09:08 +03:00
parent 6860411e53
commit c83816ce06

View File

@@ -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);