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>
This commit is contained in:
Gleb Smirnoff 2013-03-11 13:05:11 +00:00
parent f4562a299c
commit 61dbb845c7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=248159

View File

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