summaryrefslogtreecommitdiffstats
path: root/lib/libnetgraph
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2013-03-11 13:05:11 +0000
committerglebius <glebius@FreeBSD.org>2013-03-11 13:05:11 +0000
commit15e6f8c02a0806d1f30cf0f15734e43b9d02daec (patch)
tree8fe1916413768a8dec3e977a3cd9d8116c476e37 /lib/libnetgraph
parent6feb84d64e6000cf84f1e76920d6824639a76fd5 (diff)
downloadFreeBSD-src-15e6f8c02a0806d1f30cf0f15734e43b9d02daec.zip
FreeBSD-src-15e6f8c02a0806d1f30cf0f15734e43b9d02daec.tar.gz
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 <keith.reynolds tidalscale.com>
Diffstat (limited to 'lib/libnetgraph')
-rw-r--r--lib/libnetgraph/msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libnetgraph/msg.c b/lib/libnetgraph/msg.c
index 534d1d1..c946459 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;
OpenPOWER on IntegriCloud