check_local_ugid(): fix potential NULL dereference

Indeed, we check uid || gid for non-NULL in if condition,
but then dereference them both. Fix by using ?: operator.

Reported by Coverity, CID 1025651.

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