Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jun 2012 07:40:18 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r237053 - stable/9/sys/contrib/pf/net
Message-ID:  <201206140740.q5E7eIBx078861@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Thu Jun 14 07:40:18 2012
New Revision: 237053
URL: http://svn.freebsd.org/changeset/base/237053

Log:
  Merge r236671 from head:
    Merge revision 1.715 from OpenBSD:
  
      date: 2010/12/24 20:12:56;  author: henning;  state: Exp;  lines: +3 -3
      in pf_src_connlimit, the indices to sk->addr were swapped.
      tracked down and diff sent by Robert B Mills <rbmills at sdf.lonestar.org>
      thanks, very good work! ok claudio
  
    Impact is that the "flush" keyword didn't work.
  
    Obtained from:        OpenBSD

Modified:
  stable/9/sys/contrib/pf/net/pf.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/contrib/pf/   (props changed)

Modified: stable/9/sys/contrib/pf/net/pf.c
==============================================================================
--- stable/9/sys/contrib/pf/net/pf.c	Thu Jun 14 07:12:41 2012	(r237052)
+++ stable/9/sys/contrib/pf/net/pf.c	Thu Jun 14 07:40:18 2012	(r237053)
@@ -643,10 +643,10 @@ pf_src_connlimit(struct pf_state **state
 				    (*state)->key[PF_SK_WIRE]->af &&
 				    (((*state)->direction == PF_OUT &&
 				    PF_AEQ(&(*state)->src_node->addr,
-					&sk->addr[0], sk->af)) ||
+					&sk->addr[1], sk->af)) ||
 				    ((*state)->direction == PF_IN &&
 				    PF_AEQ(&(*state)->src_node->addr,
-					&sk->addr[1], sk->af))) &&
+					&sk->addr[0], sk->af))) &&
 				    ((*state)->rule.ptr->flush &
 				    PF_FLUSH_GLOBAL ||
 				    (*state)->rule.ptr == st->rule.ptr)) {



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