svn commit: r217388 - head/sys/contrib/pf/net

Christian S.J. Peron csjp at FreeBSD.org
Fri Jan 14 04:24:53 UTC 2011


Author: csjp
Date: Fri Jan 14 04:24:53 2011
New Revision: 217388
URL: http://svn.freebsd.org/changeset/base/217388

Log:
  Correct bogus initialization.  It should be noted that this change
  has been corrected in the vendor branch, but for now, silence clang
  warnings.
  
  Found by:	clang
  Discussed with:	mlaier
  MFC after:	1 week

Modified:
  head/sys/contrib/pf/net/pf_osfp.c

Modified: head/sys/contrib/pf/net/pf_osfp.c
==============================================================================
--- head/sys/contrib/pf/net/pf_osfp.c	Fri Jan 14 01:07:39 2011	(r217387)
+++ head/sys/contrib/pf/net/pf_osfp.c	Fri Jan 14 04:24:53 2011	(r217388)
@@ -601,7 +601,7 @@ pf_osfp_validate(void)
 		if (find.fp_mss == 0)
 			find.fp_mss = 128;
 		if (f->fp_flags & PF_OSFP_WSIZE_MSS)
-			find.fp_wsize *= find.fp_mss, 1;
+			find.fp_wsize *= find.fp_mss;
 		else if (f->fp_flags & PF_OSFP_WSIZE_MTU)
 			find.fp_wsize *= (find.fp_mss + 40);
 		else if (f->fp_flags & PF_OSFP_WSIZE_MOD)


More information about the svn-src-head mailing list