From: Enrico Scholz Date: Thu, 19 Feb 2004 22:56:53 +0000 (+0000) Subject: vc_set_ipv4root_compat(): fixed off-by-one error while checking number X-Git-Tag: version_0_30~25 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2874ab2aea0fcbd3f8a2098db7856a8d7bdb797;p=util-vserver.git vc_set_ipv4root_compat(): fixed off-by-one error while checking number 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 --- diff --git a/util-vserver/lib/syscall-compat.hc b/util-vserver/lib/syscall-compat.hc index fb07d4d..a315bb4 100644 --- a/util-vserver/lib/syscall-compat.hc +++ b/util-vserver/lib/syscall-compat.hc @@ -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; }