svn commit: r296566 - head/sbin/ipfw

Andrey V. Elsukov ae at FreeBSD.org
Wed Mar 9 14:47:07 UTC 2016


Author: ae
Date: Wed Mar  9 14:47:05 2016
New Revision: 296566
URL: https://svnweb.freebsd.org/changeset/base/296566

Log:
  Set buffer to empty string to prevent duplicated output in some cases.
  
  PR:		193888

Modified:
  head/sbin/ipfw/ipfw2.c

Modified: head/sbin/ipfw/ipfw2.c
==============================================================================
--- head/sbin/ipfw/ipfw2.c	Wed Mar  9 13:45:03 2016	(r296565)
+++ head/sbin/ipfw/ipfw2.c	Wed Mar  9 14:47:05 2016	(r296566)
@@ -424,6 +424,7 @@ bp_flush(struct buf_pr *b)
 
 	b->ptr = b->buf;
 	b->avail = b->size;
+	b->buf[0] = '\0';
 }
 
 /*


More information about the svn-src-head mailing list