Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
de2d745b
Commit
de2d745b
authored
Apr 10, 2003
by
Jean-Francois Dive
Committed by
David S. Miller
Apr 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPSEC]: Check xfrm state expiration on input after replay check.
parent
570f6c65
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
net/ipv4/xfrm4_input.c
net/ipv4/xfrm4_input.c
+3
-0
net/ipv6/xfrm6_input.c
net/ipv6/xfrm6_input.c
+3
-0
No files found.
net/ipv4/xfrm4_input.c
View file @
de2d745b
...
...
@@ -48,6 +48,9 @@ int xfrm4_rcv_encap(struct sk_buff *skb, __u16 encap_type)
if
(
x
->
props
.
replay_window
&&
xfrm_replay_check
(
x
,
seq
))
goto
drop_unlock
;
if
(
xfrm_state_check_expire
(
x
))
goto
drop_unlock
;
xfrm_vec
[
xfrm_nr
].
decap
.
decap_type
=
encap_type
;
if
(
x
->
type
->
input
(
x
,
&
(
xfrm_vec
[
xfrm_nr
].
decap
),
skb
))
goto
drop_unlock
;
...
...
net/ipv6/xfrm6_input.c
View file @
de2d745b
...
...
@@ -172,6 +172,9 @@ int xfrm6_rcv(struct sk_buff **pskb)
if
(
x
->
props
.
replay_window
&&
xfrm_replay_check
(
x
,
seq
))
goto
drop_unlock
;
if
(
xfrm_state_check_expire
(
x
))
goto
drop_unlock
;
nexthdr
=
x
->
type
->
input
(
x
,
&
(
xfrm_vec
[
xfrm_nr
].
decap
),
skb
);
if
(
nexthdr
<=
0
)
goto
drop_unlock
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment