Dont count bytes being sent to a disconnected hook.

MFC after:	3 days
This commit is contained in:
Julian Elischer 2004-03-22 01:15:28 +00:00
parent 9055e6fd1b
commit 0598ef01ee

View File

@ -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);
}