Dont count bytes being sent to a disconnected hook.
MFC after: 3 days
This commit is contained in:
parent
9055e6fd1b
commit
0598ef01ee
@ -351,11 +351,11 @@ ngt_rcvdata(hook_p hook, item_p item)
|
||||
}
|
||||
}
|
||||
/* Deliver frame out destination hook */
|
||||
dest->stats.outOctets += m->m_pkthdr.len;
|
||||
dest->stats.outFrames++;
|
||||
if (dest->hook)
|
||||
if (dest->hook) {
|
||||
dest->stats.outOctets += m->m_pkthdr.len;
|
||||
dest->stats.outFrames++;
|
||||
NG_FWD_ITEM_HOOK(error, item, dest->hook);
|
||||
else
|
||||
} else
|
||||
NG_FREE_ITEM(item);
|
||||
return (error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user