diff options
author | Tobias Brunner <tobias@strongswan.org> | 2014-12-05 16:37:10 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2014-12-12 12:00:20 +0100 |
commit | f55a03a2de5d95389ef2417ad6ca393e1921f9ba (patch) | |
tree | 38a3daa5e476d06c0628189d8c8d95a00900057c /src | |
parent | 108e388580227c3e3c30717967c3267ec6a431ce (diff) | |
download | strongswan-f55a03a2de5d95389ef2417ad6ca393e1921f9ba.tar.bz2 strongswan-f55a03a2de5d95389ef2417ad6ca393e1921f9ba.tar.xz |
bliss: Fix compilation warning with certain GCC versions
Theoretically, n could be zero and these variables are then used
uninitialized. Older GCC versions warn about this and on Travis where we
compile with -Werror this causes the tests to fail.
Diffstat (limited to 'src')
-rw-r--r-- | src/libstrongswan/plugins/bliss/bliss_private_key.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/bliss/bliss_private_key.c b/src/libstrongswan/plugins/bliss/bliss_private_key.c index 9e3767f08..f75ae8ea2 100644 --- a/src/libstrongswan/plugins/bliss/bliss_private_key.c +++ b/src/libstrongswan/plugins/bliss/bliss_private_key.c @@ -118,7 +118,8 @@ static bool sign_bliss_with_sha512(private_bliss_private_key_t *this, uint16_t q, q2, p, p2, *c_indices, tests = 0; uint32_t *ay; int32_t *y1, *y2, *z1, *z2, *u, *s1c, *s2c; - int32_t y1_min, y1i, y1_max, y2_min, y2i, y2_max, scalar, norm, ui; + int32_t y1_min = 0, y1i, y1_max = 0, y2_min = 0, y2i, y2_max = 0; + int32_t scalar, norm, ui; int16_t *ud, *uz2d, *z2d, value; int i, n; size_t seed_len; |