summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--srcx/util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/srcx/util.c b/srcx/util.c
index ffea8ff..dd0af87 100644
--- a/srcx/util.c
+++ b/srcx/util.c
@@ -120,14 +120,16 @@ jails_next (jails *jls)
case 2:
xp = xp + 1;
break;
+#ifdef JAIL_MULTIADDR
case 3:
data = (unsigned char*)(xp + 1);
data += (xp->pr_ip4s * sizeof(struct in_addr));
data += (xp->pr_ip6s * sizeof(struct in6_addr));
xp = (struct xprison*)data;
break;
+#endif
default:
- errx(1, "unknown jail structure");
+ errx(1, "unknown version of jail structure: %d", xp->pr_version);
break;
}
}