Author: kp
Date: Thu Nov 22 19:56:51 2018
New Revision: 340776
URL: https://svnweb.freebsd.org/changeset/base/340776

Log:
  MFC r340265:
  
  pf: Prevent tables referenced by rules in anchors from getting disabled.
  
  PR:           183198
  Obtained from:        OpenBSD

Modified:
  stable/11/sys/netpfil/pf/pf_table.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netpfil/pf/pf_table.c
==============================================================================
--- stable/11/sys/netpfil/pf/pf_table.c Thu Nov 22 19:56:50 2018        
(r340775)
+++ stable/11/sys/netpfil/pf/pf_table.c Thu Nov 22 19:56:51 2018        
(r340776)
@@ -1747,6 +1747,7 @@ pfr_setflags_ktable(struct pfr_ktable *kt, int newf)
        PF_RULES_WASSERT();
 
        if (!(newf & PFR_TFLAG_REFERENCED) &&
+           !(newf & PFR_TFLAG_REFDANCHOR) &&
            !(newf & PFR_TFLAG_PERSIST))
                newf &= ~PFR_TFLAG_ACTIVE;
        if (!(newf & PFR_TFLAG_ACTIVE))
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to