]> git.ipfire.org Git - thirdparty/strongswan.git/commit
ha: Properly initialize algo variables when installing CHILD_SAs
authorTobias Brunner <tobias@strongswan.org>
Mon, 3 Aug 2015 11:30:11 +0000 (13:30 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 4 Aug 2015 09:23:27 +0000 (11:23 +0200)
commita7f381ef000eb4f7687f64e967d66089085d3821
tree4352de2f3fbbb0f924f2024cdade862ee9c2a7c9
parent3434709460d83295d54f3bf5ad46cbd197e859cb
ha: Properly initialize algo variables when installing CHILD_SAs

If AEAD algorithms are used no integrity algorithm will be received from
the other HA node.  But since AUTH_UNDEFINED is 1024 and not 0 this value
was incorrectly added to the proposal, resulting in a failure during key
derivation.  The variables are now explicitly initialized to 0, as already
was the case for the IKE SAs.

Fixes #1051.
src/libcharon/plugins/ha/ha_dispatcher.c