diff --git a/libsepol/src/hierarchy.c b/libsepol/src/hierarchy.c index 8919daa79e..325b2fb7d6 100644 --- a/libsepol/src/hierarchy.c +++ b/libsepol/src/hierarchy.c @@ -603,7 +603,7 @@ int bounds_check_users(sepol_handle_t *handle, policydb_t *p) prefix##_datum_t *parent; \ char *parent_name, *datum_name, *tmp; \ \ - if (!datum->bounds) { \ + if (p->p_##prefix##_val_to_name && !datum->bounds) { \ datum_name = p->p_##prefix##_val_to_name[datum->s.value - 1]; \ \ tmp = strrchr(datum_name, '.'); \