From c2874ab2aea0fcbd3f8a2098db7856a8d7bdb797 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Thu, 19 Feb 2004 22:56:53 +0000 Subject: [PATCH] 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 --- util-vserver/lib/syscall-compat.hc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 1.8.1.5