Fix creating domain when adding rules

This commit is contained in:
Pierre-Hugues Husson 2015-10-09 23:56:50 +02:00
parent e8d062a95a
commit 6a9234e634

View File

@ -287,7 +287,7 @@ int main(int argc, char **argv)
return 1;
}
} else {
create_domain(source, policy);
create_domain(source, &policydb);
if (add_rule(source, target, class, perm, &policydb)) {
fprintf(stderr, "Could not add rule\n");
return 1;