svn commit: r204487 - user/luigi/ipfw3-head/sys/netinet/ipfw

Luigi Rizzo luigi at FreeBSD.org
Sun Feb 28 21:54:16 UTC 2010


Author: luigi
Date: Sun Feb 28 21:54:15 2010
New Revision: 204487
URL: http://svn.freebsd.org/changeset/base/204487

Log:
  clear the right variable after freeing

Modified:
  user/luigi/ipfw3-head/sys/netinet/ipfw/ip_dummynet.c

Modified: user/luigi/ipfw3-head/sys/netinet/ipfw/ip_dummynet.c
==============================================================================
--- user/luigi/ipfw3-head/sys/netinet/ipfw/ip_dummynet.c	Sun Feb 28 21:45:00 2010	(r204486)
+++ user/luigi/ipfw3-head/sys/netinet/ipfw/ip_dummynet.c	Sun Feb 28 21:54:15 2010	(r204487)
@@ -1798,7 +1798,7 @@ dummynet_get(struct sockopt *sopt, void 
 		DN_BH_WUNLOCK();
 		if (start)
 			free(start, M_DUMMYNET);
-		buf = NULL;
+		start = NULL;
 		if (need > sopt_valsize)
 			break;
 		have = need;


More information about the svn-src-user mailing list