Commit 6a9234e6 authored by Pierre-Hugues Husson's avatar Pierre-Hugues Husson

Fix creating domain when adding rules

parent e8d062a9
...@@ -287,7 +287,7 @@ int main(int argc, char **argv) ...@@ -287,7 +287,7 @@ int main(int argc, char **argv)
return 1; return 1;
} }
} else { } else {
create_domain(source, policy); create_domain(source, &policydb);
if (add_rule(source, target, class, perm, &policydb)) { if (add_rule(source, target, class, perm, &policydb)) {
fprintf(stderr, "Could not add rule\n"); fprintf(stderr, "Could not add rule\n");
return 1; return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment