]> git.ipfire.org Git - thirdparty/strongswan.git/commit
ike: Don't trigger message hook when fragmenting pre-generated messages
authorTobias Brunner <tobias@strongswan.org>
Wed, 25 May 2016 07:42:08 +0000 (09:42 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 6 Jun 2016 12:12:48 +0000 (14:12 +0200)
commite35bb6e9462aa90c0ac508a1083d411762015c1e
tree4c2bbbd82e56585b202a27e1c91c3dc2746f6557
parentaa6d4a3d54698ec875fa477eb366bc3bd5e7335b
ike: Don't trigger message hook when fragmenting pre-generated messages

This is the case for the IKE_SA_INIT and the initial IKEv1 messages, which
are pre-generated in tasks as at least parts of it are used to generate
the AUTH payload.  The IKE_SA_INIT message will never be fragmented, but
the IKEv1 messages might be, so we can't just call generate_message().

Fixes #1478.
src/libcharon/sa/ike_sa.c