Wrong check
This commit is contained in:
parent
173757cfa2
commit
83c39f57f0
@ -213,7 +213,7 @@ int add_typerule(char *s, char *targetAttribute, char **minusses, char *c, char
|
||||
for(int i=0; minusses && minusses[i]; ++i) {
|
||||
type_datum_t *obj;
|
||||
obj = hashtab_search(policy->p_types.table, minusses[i]);
|
||||
if (m == NULL) {
|
||||
if (obj == NULL) {
|
||||
fprintf(stderr, "minus type %s does not exist\n", minusses[i]);
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user