]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
kernel-klips: Pass a pointer to a properly sized integer for algorithm lookup
authorMartin Willi <martin@revosec.ch>
Thu, 8 May 2014 11:28:25 +0000 (13:28 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 16 May 2014 13:42:07 +0000 (15:42 +0200)
src/libhydra/plugins/kernel_klips/kernel_klips_ipsec.c

index a75ccf3b69a7585f2bd335193331d43e9e893a9d..0b66b4d943f5b1ae9398d1da8ab5853bd23c52cd 100644 (file)
@@ -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)
        {