diff options
author | florian <florian@openbsd.org> | 2018-02-03 11:03:51 +0000 |
---|---|---|
committer | florian <florian@openbsd.org> | 2018-02-03 11:03:51 +0000 |
commit | ee5153b76e0db0e530220bd4ec0e249a51365081 (patch) | |
tree | 9818d26c31823089de84837285cf0bc59c6eb180 /usr.sbin/nsd/rrl.c | |
parent | In ether_input() use goto dropanyway instead of repeating m_freem() (diff) | |
download | wireguard-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.c | 4 |
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)); } |