Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Mar 2016 14:47:05 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r296566 - head/sbin/ipfw
Message-ID:  <201603091447.u29El58h045114@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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';
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603091447.u29El58h045114>