Compile-time check on buffer sizes for leasefile parsing code.

This commit is contained in:
Simon Kelley
2016-07-22 21:37:59 +01:00
parent 6b1c464d6d
commit bf4e62c19e
4 changed files with 21 additions and 10 deletions

View File

@@ -1975,7 +1975,7 @@ static void log6_packet(struct state *state, char *type, struct in6_addr *addr,
if (addr)
{
inet_ntop(AF_INET6, addr, daemon->dhcp_buff2, 255);
inet_ntop(AF_INET6, addr, daemon->dhcp_buff2, DHCP_BUFF_SZ - 1);
strcat(daemon->dhcp_buff2, " ");
}
else