From: Hagen Paul Pfeifer <hpplinuxml@0xdef.net>
To: linux-kernel@vger.kernel.org
Cc: acme@mandriva.com, dccp@vger.kernel.org
Subject: [PATCH] dccp sizeof correction
Date: Tue, 22 Nov 2005 11:51:31 +0100 [thread overview]
Message-ID: <20051122105130.GA25078@0xdef.net> (raw)
Setsockopt in DCCP make the assumption that sizeof(int) is the same as
sizeof(u32), that isn't correct at all. ;)
best regards
HGN
Signed-off-by: Hagen Paul Pfeifer <hpplinuxml@0xdef.net>
net/dccp/proto.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
applies-to: 69ebfee77c8a174c87ea8ed31e023c94b09a9d6e
d24574ecf034d259882a6de16d27aff60c009c8d
diff --git a/net/dccp/proto.c b/net/dccp/proto.c
index a021c34..a1be808 100644
--- a/net/dccp/proto.c
+++ b/net/dccp/proto.c
@@ -256,7 +256,7 @@ int dccp_setsockopt(struct sock *sk, int
if (level != SOL_DCCP)
return ip_setsockopt(sk, level, optname, optval, optlen);
- if (optlen < sizeof(int))
+ if (optlen < sizeof(u32))
return -EINVAL;
if (get_user(val, (int __user *)optval))
---
0.99.9g
next reply other threads:[~2005-11-22 10:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-22 10:51 Hagen Paul Pfeifer [this message]
2005-11-22 10:09 ` YOSHIFUJI Hideaki / 吉藤英明
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051122105130.GA25078@0xdef.net \
--to=hpplinuxml@0xdef.net \
--cc=acme@mandriva.com \
--cc=dccp@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®