trap-manager: don't check-in nonexisting IKE_SA if acquire fails
[strongswan.git] / src / libcharon / sa / trap_manager.c
index 7a4567c..5d947ec 100644 (file)
@@ -320,8 +320,7 @@ METHOD(trap_manager_t, acquire, void,
                }
                else
                {
-                       charon->ike_sa_manager->checkin_and_destroy(
-                                                                                               charon->ike_sa_manager, ike_sa);
+                       ike_sa->destroy(ike_sa);
                }
        }
        peer->destroy(peer);