Properly return rule number.

Submitted by:	Wojciech A. Koszek
PR:		bin/79292
MFC after:	1 week
This commit is contained in:
Pawel Jakub Dawidek 2005-03-28 09:37:44 +00:00
parent e19881ff08
commit fbc822ae3a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144210

View file

@ -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);
}