mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix getting stats from many links with index > 0.
Submitted by: Richard Kojedzinszky MFC after: 3 days
This commit is contained in:
parent
fdb4edd889
commit
43eca7506e
1 changed files with 1 additions and 1 deletions
|
|
@ -331,7 +331,7 @@ ng_one2many_rcvmsg(node_p node, item_p item, hook_p lasthook)
|
|||
linkNum = *((int32_t *)msg->data);
|
||||
if (linkNum == NG_ONE2MANY_ONE_LINKNUM)
|
||||
link = &priv->one;
|
||||
else if (linkNum == 0
|
||||
else if (linkNum >= 0
|
||||
&& linkNum < NG_ONE2MANY_MAX_LINKS) {
|
||||
link = &priv->many[linkNum];
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue