svn commit: r349633 - stable/11/sbin/dhclient
Mark Johnston
markj at FreeBSD.org
Wed Jul 3 00:36:35 UTC 2019
Author: markj
Date: Wed Jul 3 00:36:34 2019
New Revision: 349633
URL: https://svnweb.freebsd.org/changeset/base/349633
Log:
MFC r349439:
Free DHCP options with length zero.
Modified:
stable/11/sbin/dhclient/options.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sbin/dhclient/options.c
==============================================================================
--- stable/11/sbin/dhclient/options.c Wed Jul 3 00:36:00 2019 (r349632)
+++ stable/11/sbin/dhclient/options.c Wed Jul 3 00:36:34 2019 (r349633)
@@ -894,6 +894,5 @@ do_packet(struct interface_info *interface, struct dhc
/* 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);
}
More information about the svn-src-all
mailing list