Author: glebius
Date: Mon Mar 11 13:05:11 2013
New Revision: 248159
URL: http://svnweb.freebsd.org/changeset/base/248159

Log:
  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>

Modified:
  head/lib/libnetgraph/msg.c

Modified: head/lib/libnetgraph/msg.c
==============================================================================
--- head/lib/libnetgraph/msg.c  Mon Mar 11 12:22:44 2013        (r248158)
+++ head/lib/libnetgraph/msg.c  Mon Mar 11 13:05:11 2013        (r248159)
@@ -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;
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to