From 051fbf7d660d47865101ed0f9846d50e84bb6e39 Mon Sep 17 00:00:00 2001 From: Archie Cobbs Date: Wed, 12 Jul 2000 23:55:07 +0000 Subject: Fix race condition caused by using NG_SEND_DATAQ() where we meant to use ng_queue_data(). Reported by: Udo Erdelhoff --- sys/netgraph/ng_ether.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/netgraph') diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c index 508b2162fbd7f..6984d1a45d046 100644 --- a/sys/netgraph/ng_ether.c +++ b/sys/netgraph/ng_ether.c @@ -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; } -- cgit v1.3