From 7a0a3540fcbf1dc80c9d08eefa627c097b46be3a Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Wed, 3 Jul 2019 00:36:00 +0000 Subject: [PATCH] MFC r349439: Free DHCP options with length zero. --- sbin/dhclient/options.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sbin/dhclient/options.c b/sbin/dhclient/options.c index 3b05e3ff188..dc4cceab841 100644 --- a/sbin/dhclient/options.c +++ b/sbin/dhclient/options.c @@ -896,6 +896,5 @@ do_packet(struct interface_info *interface, struct dhcp_packet *packet, /* Free the data associated with the options. */ for (i = 0; i < 256; i++) - if (tp.options[i].len && tp.options[i].data) - free(tp.options[i].data); + free(tp.options[i].data); } -- 2.45.0