]> git.pld-linux.org Git - packages/xtables-addons.git/blob - xtables-addons-pre2.6.35-checkentry.patch
- added .checkentry return value patch for pre-2.6.35 kernels, rel. 9
[packages/xtables-addons.git] / xtables-addons-pre2.6.35-checkentry.patch
1 diff -rNpu xtables-addons-1.28-pre2.6.35-checkversion/extensions/compat_xtables.c xtables-addons-1.28/extensions/compat_xtables.c
2 --- xtables-addons-1.28-pre2.6.35-checkversion/extensions/compat_xtables.c      2010-07-24 11:33:11.000000000 +0200
3 +++ xtables-addons-1.28/extensions/compat_xtables.c     2010-09-01 09:23:44.000000000 +0200
4 @@ -105,7 +105,7 @@ static bool xtnu_match_check(const char 
5                 return false;
6         if (nm->checkentry == NULL)
7                 return true;
8 -       return nm->checkentry(&local_par);
9 +       return nm->checkentry(&local_par) == 0 ? true : false;
10  }
11  #endif
12  #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 28) && \
13 @@ -313,7 +313,7 @@ static bool xtnu_target_check(const char
14         if (nt->checkentry == NULL)
15                 /* this is valid, just like if there was no function */
16                 return true;
17 -       return nt->checkentry(&local_par);
18 +       return nt->checkentry(&local_par) == 0 ? true : false;
19  }
20  #endif
21  
This page took 0.078699 seconds and 3 git commands to generate.