Interface IDs are 0-origin.
That means that if an interface ID is greater than *or equal to* the number of Interface Description Blocks we've seen, we haven't seen an IDB for that interface.
This commit is contained in:
parent
d58b82da9f
commit
028204e0f9
|
@ -1053,7 +1053,7 @@ found:
|
||||||
/*
|
/*
|
||||||
* Is the interface ID an interface we know?
|
* Is the interface ID an interface we know?
|
||||||
*/
|
*/
|
||||||
if (interface_id > p->sf.ifcount) {
|
if (interface_id >= p->sf.ifcount) {
|
||||||
/*
|
/*
|
||||||
* Yes. Fail.
|
* Yes. Fail.
|
||||||
*/
|
*/
|
||||||
|
|
Reference in New Issue