Re: [PATCH]: Fix off-by-one in max protocol-type check
From: Patrick McHardy <hidden>
Date: 2004-05-28 10:55:57
Attachments
- protocol-type-off-by-one.diff [text/x-patch] 1147 bytes · preview
From: Patrick McHardy <hidden>
Date: 2004-05-28 10:55:57
Patrick McHardy wrote:
This patch fixes an off-by-one in inet_register_protosw and inet6_register_protosw. inetsw is an array of size SOCK_MAX, the check allows access to index SOCK_MAX. Patch applies to 2.4 and 2.6.
Forgot the patch, sorry ;)
Regards Patrick