fixed state check if establishing the CHILD_SA fails
authorMartin Willi <martin@strongswan.org>
Fri, 10 Jul 2009 07:40:02 +0000 (09:40 +0200)
committerMartin Willi <martin@strongswan.org>
Fri, 10 Jul 2009 07:40:02 +0000 (09:40 +0200)
src/charon/plugins/nm/nm_service.c

index e695585..6b86ef4 100644 (file)
@@ -156,7 +156,7 @@ static bool child_state_change(listener_t *listener, ike_sa_t *ike_sa,
 {
        NMStrongswanPluginPrivate *private = (NMStrongswanPluginPrivate*)listener;
        
-       if (private->ike_sa == ike_sa && state == IKE_DESTROYING)
+       if (private->ike_sa == ike_sa && state == CHILD_DESTROYING)
        {
                signal_failure(private->plugin, NM_VPN_PLUGIN_FAILURE_CONNECT_FAILED);
                return FALSE;