From: Martin Willi Date: Thu, 8 May 2014 11:28:25 +0000 (+0200) Subject: kernel-klips: Pass a pointer to a properly sized integer for algorithm lookup X-Git-Tag: 5.2.0dr5~39^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6eff96f543af38c23d70efe79f771402e020bc65;p=thirdparty%2Fstrongswan.git kernel-klips: Pass a pointer to a properly sized integer for algorithm lookup --- diff --git a/src/libhydra/plugins/kernel_klips/kernel_klips_ipsec.c b/src/libhydra/plugins/kernel_klips/kernel_klips_ipsec.c index a75ccf3b69..0b66b4d943 100644 --- a/src/libhydra/plugins/kernel_klips/kernel_klips_ipsec.c +++ b/src/libhydra/plugins/kernel_klips/kernel_klips_ipsec.c @@ -823,7 +823,7 @@ static kernel_algorithm_t compression_algs[] = { static int lookup_algorithm(transform_type_t type, int ikev2) { kernel_algorithm_t *list; - int alg = 0; + u_int16_t alg = 0; switch (type) {