aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/sql
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-06-15 11:46:33 +0200
committerTobias Brunner <tobias@strongswan.org>2015-07-27 14:44:32 +0200
commit86d20b0b40066590f5e26d1f9aca21cc0cba97e1 (patch)
treec84cc22253f6e8da56562075b5fc0aac45268c77 /src/libcharon/plugins/sql
parent5af74bcb8482e432c5abf6a53c3f53ee93af577f (diff)
downloadstrongswan-86d20b0b40066590f5e26d1f9aca21cc0cba97e1.tar.bz2
strongswan-86d20b0b40066590f5e26d1f9aca21cc0cba97e1.tar.xz
ike-rekey: Reset IKE_SA on the bus after destroying new IKE_SA
The destroy() method sets the IKE_SA on the bus to NULL, we reset it to the current IKE_SA so any events and log messages that follow happen in the correct context. A practical example where this is problematic is a DH group mismatch, which causes the first CREATE_CHILD_SA exchange to fail. Because the SA was not reset previously, the message() hook for the CREATE_CHILD_SA response, for instance, was triggered outside the context of an IKE_SA, that is, the ike_sa parameter was NULL, which is definitely not expected by several plugins. Fixes #862.
Diffstat (limited to 'src/libcharon/plugins/sql')
0 files changed, 0 insertions, 0 deletions