fixed sync of CHILD_SA delete
authorMartin Willi <martin@strongswan.org>
Tue, 2 Dec 2008 15:33:01 +0000 (15:33 +0000)
committerMartin Willi <martin@revosec.ch>
Wed, 7 Apr 2010 11:55:12 +0000 (13:55 +0200)
src/charon/plugins/ha_sync/ha_sync_dispatcher.c

index be6a785..aacf239 100644 (file)
@@ -554,17 +554,14 @@ static void process_child_delete(private_ha_sync_dispatcher_t *this,
                                                                                                                  value.ike_sa_id);
                                break;
                        case HA_SYNC_INBOUND_SPI:
-                               if (!ike_sa || ike_sa->destroy_child_sa(ike_sa, PROTO_ESP,
-                                                                                               value.u32) != SUCCESS)
+                               if (ike_sa)
                                {
-                                       DBG1(DBG_CHD, "HA sync CHILD_SA 0x%lx delete failed (%p)",
-                                                value.u32, ike_sa);
+                                       ike_sa->destroy_child_sa(ike_sa, PROTO_ESP, value.u32);
                                }
                                break;
                        default:
                                break;
                }
-               break;
        }
        if (ike_sa)
        {