initial checkin
[util-vserver.git] / util-vserver / lib / syscall-compat.hc
index ad384ec..b3838ce 100644 (file)
@@ -42,8 +42,8 @@ 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) {
-    errno = -EINVAL;
+  if (nb>NB_IPV4ROOT) {
+    errno = -EOVERFLOW;
     return -1;
   }