mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-28 11:57:28 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143404
@ -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 New Issue
Block a user