Fix race condition caused by using NG_SEND_DATAQ() where we meant

to use ng_queue_data().

Reported by:	Udo Erdelhoff <ue@nathan.ruhr.de>
This commit is contained in:
archie 2000-07-12 23:55:07 +00:00
parent bf36609078
commit e713486f3b

View File

@ -203,9 +203,7 @@ ng_ether_input2(node_p node, struct mbuf **mp, struct ether_header *eh)
return;
/* Send out lower/orphan hook */
NG_SEND_DATAQ(error, priv->lower, *mp, meta);
/* Any reflected packet must come later due to queuing */
(void)ng_queue_data(priv->lower, *mp, meta);
*mp = NULL;
}