mediation: Reschedule initiate mediation job if SA is not yet found
authorTobias Brunner <tobias@strongswan.org>
Fri, 6 Nov 2015 13:45:57 +0000 (14:45 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 9 Nov 2015 14:18:38 +0000 (15:18 +0100)
commit4ae29195186e39702f7448bc33a4af47423e9ec2
tree957764b61e167202d8d4c1a64e8d31831884fdbe
parentbcad0f761f39e4f9709611f6c2ab9674ea023613
mediation: Reschedule initiate mediation job if SA is not yet found

If the job gets queued for a newly created IKE_SA it might not yet be
checked in when the job is running, reschedule the job in that case.

This should fix the two p2pnat test scenarios, which occasionally
failed because one of the peers did not initiate the connection to
the mediation server.
src/libcharon/processing/jobs/initiate_mediation_job.c