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
9aaf5660
Commit
9aaf5660
authored
May 27, 2003
by
Hideaki Yoshifuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Fix possible dst leakage in ndisc_send_redirect.
parent
949c3645
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
net/ipv6/ndisc.c
net/ipv6/ndisc.c
+5
-6
No files found.
net/ipv6/ndisc.c
View file @
9aaf5660
...
...
@@ -1292,12 +1292,6 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,
int
hlen
;
dev
=
skb
->
dev
;
rt
=
rt6_lookup
(
&
skb
->
nh
.
ipv6h
->
saddr
,
NULL
,
dev
->
ifindex
,
1
);
if
(
rt
==
NULL
)
return
;
dst
=
(
struct
dst_entry
*
)
rt
;
if
(
ipv6_get_lladdr
(
dev
,
&
saddr_buf
))
{
ND_PRINTK1
(
"redirect: no link_local addr for dev
\n
"
);
...
...
@@ -1306,7 +1300,12 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,
ndisc_flow_init
(
&
fl
,
NDISC_REDIRECT
,
&
saddr_buf
,
&
skb
->
nh
.
ipv6h
->
saddr
);
rt
=
rt6_lookup
(
&
skb
->
nh
.
ipv6h
->
saddr
,
NULL
,
dev
->
ifindex
,
1
);
if
(
rt
==
NULL
)
return
;
dst
=
&
rt
->
u
.
dst
;
dst_clone
(
dst
);
err
=
xfrm_lookup
(
&
dst
,
&
fl
,
NULL
,
0
);
if
(
err
)
{
dst_release
(
dst
);
...
...
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