Module Name:    src
Committed By:   christos
Date:           Tue Oct 31 15:00:03 UTC 2017

Modified Files:
        src/sys/dist/pf/net: pf.c

Log Message:
PR/52682: David Binderman: Fix wrong assignment (in the !__NetBSD__ code)


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/sys/dist/pf/net/pf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dist/pf/net/pf.c
diff -u src/sys/dist/pf/net/pf.c:1.76 src/sys/dist/pf/net/pf.c:1.77
--- src/sys/dist/pf/net/pf.c:1.76	Mon Feb 13 22:05:06 2017
+++ src/sys/dist/pf/net/pf.c	Tue Oct 31 11:00:03 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: pf.c,v 1.76 2017/02/14 03:05:06 ozaki-r Exp $	*/
+/*	$NetBSD: pf.c,v 1.77 2017/10/31 15:00:03 christos Exp $	*/
 /*	$OpenBSD: pf.c,v 1.552.2.1 2007/11/27 16:37:57 henning Exp $ */
 
 /*
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pf.c,v 1.76 2017/02/14 03:05:06 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pf.c,v 1.77 2017/10/31 15:00:03 christos Exp $");
 
 #include "pflog.h"
 
@@ -1708,7 +1708,7 @@ pf_send_tcp(const struct pf_rule *r, sa_
 	m->m_pkthdr.pf.tag = rtag;
 
 	if (r != NULL && r->rtableid >= 0)
-		m->m_pkthdr.pf.rtableid = m->m_pkthdr.pf.rtableid;
+		m->m_pkthdr.pf.rtableid = r->rtableid;
 #endif /* !__NetBSD__ */
 
 #ifdef ALTQ

Reply via email to