vzlist: more strict for cmdline-supplied CTIDs

First, move the veid check out of 'if' statement, similar to the
previous commit aa84f2f for vzctl.

Second, check for VEID_MAX as well to filter out invalid CTIDs as early
as possible.

Related to https://bugzilla.openvz.org/2514

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed