Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2013 13:05:12 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r248159 - head/lib/libnetgraph
Message-ID:  <201303111305.r2BD5Ce4040328@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303111305.r2BD5Ce4040328>