vc_set_ipv4root_compat(): fixed off-by-one error while checking number
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 19 Feb 2004 22:56:53 +0000 (22:56 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 19 Feb 2004 22:56:53 +0000 (22:56 +0000)
of allowed IPs (backported from HEAD)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/branches/SYSCALL_SWITCH@962 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/lib/syscall-compat.hc

index fb07d4d..a315bb4 100644 (file)
@@ -44,7 +44,7 @@ vc_set_ipv4root_compat(uint32_t  bcast, size_t nb, struct vc_ip_mask_pair const
   struct vcmd_set_ipv4root_v3  msg;
   size_t                       i;
 
-  if (nb>=NB_IPV4ROOT) {
+  if (nb>NB_IPV4ROOT) {
     errno = -EINVAL;
     return -1;
   }