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
Kirill Smelkov
linux
Commits
39a98687
Commit
39a98687
authored
May 28, 2004
by
Patrick McHardy
Committed by
David S. Miller
May 28, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Fix memory leak in ah6.c
parent
84b6951b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
net/ipv6/ah6.c
net/ipv6/ah6.c
+3
-1
No files found.
net/ipv6/ah6.c
View file @
39a98687
...
...
@@ -190,7 +190,7 @@ int ah6_output(struct sk_buff *skb)
memcpy
(
skb
->
nh
.
ipv6h
,
iph
,
hdr_len
);
nexthdr
=
ipv6_clear_mutable_options
(
skb
,
&
nh_offset
,
XFRM_POLICY_OUT
);
if
(
nexthdr
==
0
)
goto
error
;
goto
error
_free_iph
;
skb
->
nh
.
raw
[
nh_offset
]
=
IPPROTO_AH
;
skb
->
nh
.
ipv6h
->
payload_len
=
htons
(
skb
->
len
-
sizeof
(
struct
ipv6hdr
));
...
...
@@ -239,6 +239,8 @@ int ah6_output(struct sk_buff *skb)
goto
error_nolock
;
}
return
NET_XMIT_BYPASS
;
error_free_iph:
kfree
(
iph
);
error:
spin_unlock_bh
(
&
x
->
lock
);
error_nolock:
...
...
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