[PATCH] : Fix off-by-one error in rtnetlink.c
Linux Kernel Mailing List <[email protected]> Tue, 24 May 2005 12:48:35 +0000
| Newsgroups | gmane.linux.kernel.commits.2-4 |
|---|---|
| Message-ID | <[email protected]> |
ChangeSet 1.1557, 2005/05/24 09:48:35-03:00, [email protected] [PATCH] : Fix off-by-one error in rtnetlink.c [RTNETLINK]: Fix off-by-one error in rtnetlink.c Signed-Off-By: [email protected] Signed-off-by: David S. Miller <[email protected]> rtnetlink.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -Nru a/net/core/rtnetlink.c b/net/core/rtnetlink.c --- a/net/core/rtnetlink.c 2005-05-24 14:07:06 -07:00 +++ b/net/core/rtnetlink.c 2005-05-24 14:07:06 -07:00 @@ -303,7 +303,7 @@ return 0; family = ((struct rtgenmsg*)NLMSG_DATA(nlh))->rtgen_family; - if (family > NPROTO) { + if (family >= NPROTO) { *errp = -EAFNOSUPPORT; return -1; }