X-Git-Url: https://git.saurik.com/apple/ipsec.git/blobdiff_plain/65c257469f746e64364e5df94f3ed8c6698a9d0a..1760d65d3810e9b26cfaf4b496ce62509ceb4086:/ipsec-tools/racoon/isakmp.c diff --git a/ipsec-tools/racoon/isakmp.c b/ipsec-tools/racoon/isakmp.c index 324b064..8133c95 100644 --- a/ipsec-tools/racoon/isakmp.c +++ b/ipsec-tools/racoon/isakmp.c @@ -420,7 +420,10 @@ ikev1_received_packet(vchar_t *msg, struct sockaddr_storage *local, struct socka struct isakmp *isakmp = (struct isakmp *)msg->v; isakmp_index *index = (isakmp_index *)isakmp; - session = ike_session_get_session(local, remote, 1); + session = ike_session_get_session(local, remote, 0, index); + if (!session) { + session = ike_session_get_session(local, remote, 1, NULL); + } if (!session) { plog (ASL_LEVEL_INFO, "failed to allocate or find ike session.\n"); fatal_error(-1); @@ -723,7 +726,7 @@ ikev1_ph1begin_i(ike_session_t *session, struct remoteconf *rmconf, struct socka #endif if (session == NULL) { - session = ike_session_get_session(local, remote, 1); + session = ike_session_get_session(local, remote, 1, NULL); if (!session) { plog (ASL_LEVEL_INFO, "failed to allocate or find ike session.\n"); fatal_error(-1);