Fix memory exhaustion occurring on DHCP options with 0 length.
authortobias <tobias@openbsd.org>
Mon, 28 Jul 2014 16:45:35 +0000 (16:45 +0000)
committertobias <tobias@openbsd.org>
Mon, 28 Jul 2014 16:45:35 +0000 (16:45 +0000)
commit31e9e94c04b965b99ddd7f03442200ffdf217f8a
tree8017b26f08553d6c218eaf2ff5f1654aadb6a4f0
parent64b20cad71bf00a4148f1d99eba0b7b80e903796
Fix memory exhaustion occurring on DHCP options with 0 length.

halex@ and krw@ pointed out that a NULL check before free can go, too.

ok deraadt@, halex@, krw@
sbin/dhclient/options.c
usr.sbin/dhcpd/options.c