diff --git a/usr.sbin/vmd/vmd.c b/usr.sbin/vmd/vmd.c
index 25d19dc7a7f..2694c3111ac 100644
--- a/usr.sbin/vmd/vmd.c
+++ b/usr.sbin/vmd/vmd.c
@@ -1861,7 +1861,7 @@ user_checklimit(struct vmd_user *usr, struct
vm_create_params *vcp)
                limit = "cpu ";
                goto fail;
        }
-       if (usr->usr_maxcpu > VM_DEFAULT_USER_MAXMEM) {
+       if (usr->usr_maxmem > VM_DEFAULT_USER_MAXMEM) {
                limit = "memory ";
                goto fail;
        }
-- 
nest.cx is Gmail hosted, use PGP for anything private. Key:
http://goo.gl/6dMsr
Fingerprint: 5E2B 2D0E 1E03 2046 BEC3  4D50 0B15 42BD 8DF5 A1B0

Reply via email to