summaryrefslogtreecommitdiffstats
path: root/multi.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-11-01 21:05:04 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-11-01 21:05:04 +0000
commit76a59eae43d2a1d08c6dae855b57625008c44cca (patch)
tree6c438bd05ebb9c7fe48d84c7956c5335fe462d94 /multi.c
parent1818cf94daa86ea3710f5ebd92fa6ba059ea0b3b (diff)
downloadopenvpn-76a59eae43d2a1d08c6dae855b57625008c44cca.tar.gz
openvpn-76a59eae43d2a1d08c6dae855b57625008c44cca.tar.xz
openvpn-76a59eae43d2a1d08c6dae855b57625008c44cca.zip
Merged 2.0.4 changes.
svn merge -r 737:749 $SO/trunk/openvpn git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@750 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'multi.c')
-rw-r--r--multi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/multi.c b/multi.c
index a425c19..95ea758 100644
--- a/multi.c
+++ b/multi.c
@@ -413,7 +413,8 @@ static void
multi_client_disconnect_script (struct multi_context *m,
struct multi_instance *mi)
{
- if (mi->context.c2.context_auth == CAS_SUCCEEDED || mi->context.c2.context_auth == CAS_PARTIAL)
+ if ((mi->context.c2.context_auth == CAS_SUCCEEDED && mi->connection_established_flag)
+ || mi->context.c2.context_auth == CAS_PARTIAL)
{
multi_client_disconnect_setenv (m, mi);