Properly return rule number.
Submitted by: Wojciech A. Koszek PR: bin/79292 MFC after: 1 week
This commit is contained in:
parent
f4493fbc1c
commit
838e3ffcb1
@ -743,7 +743,7 @@ bsde_add_rule(int *rulenum, struct mac_bsdextended_rule *rule, size_t buflen,
|
||||
}
|
||||
|
||||
if (rulenum != NULL)
|
||||
rule_slots;
|
||||
*rulenum = rule_slots;
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user