summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nsd/rrl.c
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2018-02-03 11:03:51 +0000
committerflorian <florian@openbsd.org>2018-02-03 11:03:51 +0000
commitee5153b76e0db0e530220bd4ec0e249a51365081 (patch)
tree9818d26c31823089de84837285cf0bc59c6eb180 /usr.sbin/nsd/rrl.c
parentIn ether_input() use goto dropanyway instead of repeating m_freem() (diff)
downloadwireguard-openbsd-ee5153b76e0db0e530220bd4ec0e249a51365081.tar.xz
wireguard-openbsd-ee5153b76e0db0e530220bd4ec0e249a51365081.zip
Update nsd to 4.1.19.
OK sthen@, "so far so good" millert@ Obligatory commit from 33,000 ft.
Diffstat (limited to 'usr.sbin/nsd/rrl.c')
-rw-r--r--usr.sbin/nsd/rrl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/nsd/rrl.c b/usr.sbin/nsd/rrl.c
index 2a7ca4f05b7..c8dec3fc908 100644
--- a/usr.sbin/nsd/rrl.c
+++ b/usr.sbin/nsd/rrl.c
@@ -156,7 +156,7 @@ static const char* rrlsource2str(uint64_t s, uint16_t c2)
if(!inet_ntop(AF_INET6, &a6, buf, sizeof(buf)))
strlcpy(buf, "[ip6 ntop failed]", sizeof(buf));
else {
- static char prefix[4];
+ static char prefix[5];
snprintf(prefix, sizeof(prefix), "/%d", rrl_ipv6_prefixlen);
strlcat(buf, &prefix[0], sizeof(buf));
}
@@ -170,7 +170,7 @@ static const char* rrlsource2str(uint64_t s, uint16_t c2)
if(!inet_ntop(AF_INET, &a4, buf, sizeof(buf)))
strlcpy(buf, "[ip4 ntop failed]", sizeof(buf));
else {
- static char prefix[4];
+ static char prefix[5];
snprintf(prefix, sizeof(prefix), "/%d", rrl_ipv4_prefixlen);
strlcat(buf, &prefix[0], sizeof(buf));
}