Pass correclty sized pointer to lookup_algorithm() in PF_KEY
authorMartin Willi <martin@revosec.ch>
Wed, 13 Mar 2013 10:33:53 +0000 (11:33 +0100)
committerMartin Willi <martin@revosec.ch>
Thu, 14 Mar 2013 13:20:54 +0000 (14:20 +0100)
src/libhydra/plugins/kernel_pfkey/kernel_pfkey_ipsec.c

index 330fe2f..2521af8 100644 (file)
@@ -810,7 +810,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)
        {