trap-manager: don't check-in nonexisting IKE_SA if acquire fails
authorMartin Willi <martin@revosec.ch>
Thu, 6 Jun 2013 08:54:06 +0000 (10:54 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 19 Jun 2013 14:30:40 +0000 (16:30 +0200)
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);