From 61dbb845c7540710b29395bcaacf5df2e42f7759 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Mon, 11 Mar 2013 13:05:11 +0000 Subject: Fix for quite a special case when userland emulates a netgraph node, and userland can reply to a message with NGM_HASREPLY bit set. In this case we should not wait for a response to a responce. PR: 176771 Submitted by: Keith Reynolds --- lib/libnetgraph/msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libnetgraph') diff --git a/lib/libnetgraph/msg.c b/lib/libnetgraph/msg.c index 534d1d181d48..c94645997acb 100644 --- a/lib/libnetgraph/msg.c +++ b/lib/libnetgraph/msg.c @@ -234,7 +234,7 @@ NgDeliverMsg(int cs, const char *path, } /* Wait for reply if there should be one. */ - if (msg->header.cmd & NGM_HASREPLY) { + if (msg->header.cmd & NGM_HASREPLY && !(msg->header.flags & NGF_RESP)) { struct pollfd rfds; int n; -- cgit v1.2.3