svn commit: r349632 - stable/12/sbin/dhclient

Mark Johnston markj at FreeBSD.org
Wed Jul 3 00:36:02 UTC 2019


Author: markj
Date: Wed Jul  3 00:36:00 2019
New Revision: 349632
URL: https://svnweb.freebsd.org/changeset/base/349632

Log:
  MFC r349439:
  Free DHCP options with length zero.

Modified:
  stable/12/sbin/dhclient/options.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sbin/dhclient/options.c
==============================================================================
--- stable/12/sbin/dhclient/options.c	Wed Jul  3 00:35:14 2019	(r349631)
+++ stable/12/sbin/dhclient/options.c	Wed Jul  3 00:36:00 2019	(r349632)
@@ -896,6 +896,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