Unreak DNS usage through libcapsicum, which broke, e.g., ping in r282252

with what looks like a copy and paste error.

Sponsored by:	DARPA/AFRL
This commit is contained in:
Bjoern A. Zeeb 2015-05-01 11:56:21 +00:00
parent d8d2119e26
commit b9dadec087
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282298

View file

@ -357,7 +357,7 @@ cap_dns_family_limit(cap_channel_t *chan, const int *families,
else
limit_remove(limits, "family");
for (i = 0; i < nfamilies; i++) {
n = snprintf(nvlname, sizeof(nvlname), "type%u", i);
n = snprintf(nvlname, sizeof(nvlname), "family%u", i);
assert(n > 0 && n < (int)sizeof(nvlname));
nvlist_add_number(limits, nvlname, (uint64_t)families[i]);
}