svn commit: r299857 - stable/9/sys/contrib/ipfilter/netinet

Cy Schubert cy at FreeBSD.org
Sun May 15 15:26:20 UTC 2016


Author: cy
Date: Sun May 15 15:26:19 2016
New Revision: 299857
URL: https://svnweb.freebsd.org/changeset/base/299857

Log:
  Fix:
  IP Filter bug 1835705: It is impossible to delete a state using
  SIOCDELST ioctl.
  
  This is a direct commit to the stable/9 branch because this patch was
  already included in the ipfilter 5.1.2 import in r254562. It was
  ultimately included in ipfilter 4.1.29 (whereas stable/9 uses 4.1.28).
  
  Obtained from:	ipfilter CVS repo: ip_state.c r1.13

Modified:
  stable/9/sys/contrib/ipfilter/netinet/ip_state.c

Modified: stable/9/sys/contrib/ipfilter/netinet/ip_state.c
==============================================================================
--- stable/9/sys/contrib/ipfilter/netinet/ip_state.c	Sun May 15 15:14:46 2016	(r299856)
+++ stable/9/sys/contrib/ipfilter/netinet/ip_state.c	Sun May 15 15:26:19 2016	(r299857)
@@ -421,7 +421,7 @@ caddr_t data;
 		if ((sp->is_p == st.is_p) && (sp->is_v == st.is_v) &&
 		    !bcmp((caddr_t)&sp->is_src, (caddr_t)&st.is_src,
 			  sizeof(st.is_src)) &&
-		    !bcmp((caddr_t)&sp->is_dst, (caddr_t)&st.is_src,
+		    !bcmp((caddr_t)&sp->is_dst, (caddr_t)&st.is_dst,
 			  sizeof(st.is_dst)) &&
 		    !bcmp((caddr_t)&sp->is_ps, (caddr_t)&st.is_ps,
 			  sizeof(st.is_ps))) {


More information about the svn-src-stable-9 mailing list