dect
/
libpcap
Archived
13
0
Fork 0

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:
Guy Harris 2010-12-28 13:15:26 -08:00
parent d58b82da9f
commit 028204e0f9
1 changed files with 1 additions and 1 deletions

View File

@ -1053,7 +1053,7 @@ found:
/*
* Is the interface ID an interface we know?
*/
if (interface_id > p->sf.ifcount) {
if (interface_id >= p->sf.ifcount) {
/*
* Yes. Fail.
*/