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:21:47 +0000 (22:21 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 19 Feb 2004 22:21:47 +0000 (22:21 +0000)
of allowed IPs

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

util-vserver/lib/syscall-compat.hc

index ad384ec..1cbd166 100644 (file)
@@ -42,7 +42,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;
   }