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
4caa1239
Commit
4caa1239
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
[IPV4,6]: Fix off-by-one in max protocol-type check
parent
39a98687
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
net/ipv4/af_inet.c
net/ipv4/af_inet.c
+1
-1
net/ipv6/af_inet6.c
net/ipv6/af_inet6.c
+1
-1
No files found.
net/ipv4/af_inet.c
View file @
4caa1239
...
@@ -978,7 +978,7 @@ void inet_register_protosw(struct inet_protosw *p)
...
@@ -978,7 +978,7 @@ void inet_register_protosw(struct inet_protosw *p)
spin_lock_bh
(
&
inetsw_lock
);
spin_lock_bh
(
&
inetsw_lock
);
if
(
p
->
type
>
SOCK_MAX
)
if
(
p
->
type
>
=
SOCK_MAX
)
goto
out_illegal
;
goto
out_illegal
;
/* If we are trying to override a permanent protocol, bail. */
/* If we are trying to override a permanent protocol, bail. */
...
...
net/ipv6/af_inet6.c
View file @
4caa1239
...
@@ -572,7 +572,7 @@ inet6_register_protosw(struct inet_protosw *p)
...
@@ -572,7 +572,7 @@ inet6_register_protosw(struct inet_protosw *p)
spin_lock_bh
(
&
inetsw6_lock
);
spin_lock_bh
(
&
inetsw6_lock
);
if
(
p
->
type
>
SOCK_MAX
)
if
(
p
->
type
>
=
SOCK_MAX
)
goto
out_illegal
;
goto
out_illegal
;
/* If we are trying to override a permanent protocol, bail. */
/* If we are trying to override a permanent protocol, bail. */
...
...
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