PR:
Submitted by: Reviewed by: Approved by: Obtained from: MFC after: Add a critical patch to fix a problem with normalization, which does not cause problems in normal operation but might lead to a pagefault => crash. Submitted by: Pyun YongHyeon <yongari@kt-is.co.kr> Approved by: maintainer
This commit is contained in:
parent
849fb596d5
commit
cb8530724e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=84176
2 changed files with 14 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= pf_freebsd
|
||||
PORTVERSION= 1.0
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
CATEGORIES= security ipv6
|
||||
MASTER_SITES= http://pf4freebsd.love2party.net/
|
||||
.if defined(WITH_ALTQ) && (${WITH_ALTQ} == "yes")
|
||||
|
|
13
security/pf/files/patch-ae
Normal file
13
security/pf/files/patch-ae
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- pf/pf_norm.c 7 Apr 2003 15:31:41 -0000 1.2
|
||||
+++ pf/pf_norm.c 3 Jul 2003 02:40:10 -0000 1.2.16.1
|
||||
@@ -747,6 +747,9 @@
|
||||
*/
|
||||
#if defined(__FreeBSD__)
|
||||
*m0 = m_dup(m, M_NOWAIT);
|
||||
+ /* From KAME Project : We have missed this! */
|
||||
+ m_adj(*m0, (h->ip_hl << 2) -
|
||||
+ (*m0)->m_pkthdr.len);
|
||||
#else
|
||||
*m0 = m_copym2(m, 0, h->ip_hl << 2, M_NOWAIT);
|
||||
#endif
|
||||
|
Loading…
Reference in a new issue