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

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

No files matched your search

+1 -1
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