dect
/
libpcap
Archived
1
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.
master^2
Guy Harris 12 years ago
parent d58b82da9f
commit 028204e0f9
  1. 2
      sf-pcap-ng.c

@ -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.
*/