Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 144724 Details for
Bug 220482
LSPP: CIPSO-to-unlabeled TCP connections block
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to David Miller's net-2.6 git tree
network-fix_icsk_assignment (text/plain), 1.54 KB, created by
Paul Moore
on 2007-01-03 18:28:34 UTC
(
hide
)
Description:
Patch to David Miller's net-2.6 git tree
Filename:
MIME Type:
Creator:
Paul Moore
Created:
2007-01-03 18:28:34 UTC
Size:
1.54 KB
patch
obsolete
>Subject: NETWORK: fix incorrect "inet_sock->is_icsk" assignment > >From: Paul Moore <paul.moore@hp.com> > >The inet_create() and inet6_create() functions incorrectly set the >inet_sock->is_icsk field. Both functions assume that the is_icsk field is >large enough to hold at least a INET_PROTOSW_ICSK value when it is actually >only a single bit. This patch corrects the assignment by doing a boolean >comparison whose result will safely fit into a single bit field. > >Signed-off-by: Paul Moore <paul.moore@hp.com> >--- > net/ipv4/af_inet.c | 2 +- > net/ipv6/af_inet6.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >Index: net-2.6.20_bugfix_2/net/ipv4/af_inet.c >=================================================================== >--- net-2.6.20_bugfix_2.orig/net/ipv4/af_inet.c >+++ net-2.6.20_bugfix_2/net/ipv4/af_inet.c >@@ -305,7 +305,7 @@ lookup_protocol: > sk->sk_reuse = 1; > > inet = inet_sk(sk); >- inet->is_icsk = INET_PROTOSW_ICSK & answer_flags; >+ inet->is_icsk = (INET_PROTOSW_ICSK & answer_flags) == INET_PROTOSW_ICSK; > > if (SOCK_RAW == sock->type) { > inet->num = protocol; >Index: net-2.6.20_bugfix_2/net/ipv6/af_inet6.c >=================================================================== >--- net-2.6.20_bugfix_2.orig/net/ipv6/af_inet6.c >+++ net-2.6.20_bugfix_2/net/ipv6/af_inet6.c >@@ -171,7 +171,7 @@ lookup_protocol: > sk->sk_reuse = 1; > > inet = inet_sk(sk); >- inet->is_icsk = INET_PROTOSW_ICSK & answer_flags; >+ inet->is_icsk = (INET_PROTOSW_ICSK & answer_flags) == INET_PROTOSW_ICSK; > > if (SOCK_RAW == sock->type) { > inet->num = protocol;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 220482
:
144201
| 144724