aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra/plugins/kernel_klips/kernel_klips_ipsec.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-05-08 13:28:25 +0200
committerMartin Willi <martin@revosec.ch>2014-05-16 15:42:07 +0200
commit6eff96f543af38c23d70efe79f771402e020bc65 (patch)
tree722f9d64917ce3ee6578824ea7c292e20e584b26 /src/libhydra/plugins/kernel_klips/kernel_klips_ipsec.c
parente163427d9f16077ca3dcee81686047091be77722 (diff)
downloadstrongswan-6eff96f543af38c23d70efe79f771402e020bc65.tar.bz2
strongswan-6eff96f543af38c23d70efe79f771402e020bc65.tar.xz
kernel-klips: Pass a pointer to a properly sized integer for algorithm lookup
Diffstat (limited to 'src/libhydra/plugins/kernel_klips/kernel_klips_ipsec.c')
-rw-r--r--src/libhydra/plugins/kernel_klips/kernel_klips_ipsec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libhydra/plugins/kernel_klips/kernel_klips_ipsec.c b/src/libhydra/plugins/kernel_klips/kernel_klips_ipsec.c
index a75ccf3b6..0b66b4d94 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)
{