dhcp: fix potential buffer overflow
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 6 Aug 2022 04:05:59 +0000 (13:05 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 6 Aug 2022 04:06:32 +0000 (13:06 +0900)
commit4473cd7f61b9eb0860f2daab81491ad2145d554b
tree4072383e77bd3a4ce38e96ec8bf8f19e50372383
parent073a1daaba807708c3ef31e324ec313e3e1cf919
dhcp: fix potential buffer overflow

Fixes a bug introduced by 324f818781a250b60f2fcfa74ff1c9101d2d1315.

This also renames several macros for DHCP packet size.
src/libsystemd-network/dhcp-protocol.h
src/libsystemd-network/sd-dhcp-client.c
src/libsystemd-network/sd-dhcp-lease.c