]> git.ipfire.org Git - thirdparty/strongswan.git/commit
plugin-feature: Hash only the actually used feature argument
authorTobias Brunner <tobias@strongswan.org>
Thu, 20 Mar 2014 12:42:57 +0000 (13:42 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 20 Mar 2014 12:42:57 +0000 (13:42 +0100)
commit27b3358fedf1f642a9a129311762727ef4cb3abc
treec8d61fb91a87f48bc731eb3a0f2ac5c5ff170d76
parent0b408faef1878f0b7eb2f9fdc5db28d88553dad1
plugin-feature: Hash only the actually used feature argument

Clang does not initialize padding in union members so hashing the
complete "arg" union could lead to different hashes if the hashed
plugin_feature_t does not have static storage duration.

Fixes #549.
src/libstrongswan/plugins/plugin_feature.c