diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index e995d1c3dd70..573a2efe933a 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -905,7 +905,7 @@ lim_cur(struct proc *p, int which) struct rlimit rl; lim_rlimit(p, which, &rl); - return (rl.rlim_max); + return (rl.rlim_cur); } /*