Skip to content

Commit

Permalink
upper limit of if-index should be if_indexlim, instead of if_index
Browse files Browse the repository at this point in the history
  • Loading branch information
suz committed Dec 21, 2003
1 parent 2ff8019 commit 27ad2d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freebsd4/sys/netinet/ip_output.c
Expand Up @@ -2894,7 +2894,7 @@ in_getmopt_ifargs(sopt, ifp, ia_grp, index)
/*
* If the interface is specified, validate it.
*/
if (index < 0 || if_index < index)
if (index < 0 || if_indexlim < index)
return ENXIO; /* XXX EINVAL? */

switch (optname) {
Expand Down

0 comments on commit 27ad2d1

Please sign in to comment.