netdev
[Top] [All Lists]

[PATCH]: Fix off-by-one in max protocol-type check

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: [PATCH]: Fix off-by-one in max protocol-type check
From: Patrick McHardy <kaber@xxxxxxxxx>
Date: Fri, 28 May 2004 12:53:16 +0200
Cc: netdev@xxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5
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.

Regards
Patrick

<Prev in Thread] Current Thread [Next in Thread>