socsvn commit: r287326 - soc2015/roam/ng_ayiya

roam at FreeBSD.org roam at FreeBSD.org
Fri Jun 19 15:28:12 UTC 2015


Author: roam
Date: Fri Jun 19 15:28:11 2015
New Revision: 287326
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=287326

Log:
  Oops, avoid a null pointer dereference.
  
  Pass the correct node pointer when shutting down with a pending
  configuration request.
  
  ObQuote:	"Doesn't have a point of view, knows not where he's going to"

Modified:
  soc2015/roam/ng_ayiya/ng_ayiya.c

Modified: soc2015/roam/ng_ayiya/ng_ayiya.c
==============================================================================
--- soc2015/roam/ng_ayiya/ng_ayiya.c	Fri Jun 19 14:56:24 2015	(r287325)
+++ soc2015/roam/ng_ayiya/ng_ayiya.c	Fri Jun 19 15:28:11 2015	(r287326)
@@ -404,7 +404,7 @@
 	const priv_p priv = NG_NODE_PRIVATE(node);
 
 	if (priv->configuring)
-		configuring_respond(0, ECONNABORTED);
+		configuring_respond(node, ECONNABORTED);
 	free(priv, M_NETGRAPH_AYIYA);
 	NG_NODE_SET_PRIVATE(node, NULL);
 	NG_NODE_UNREF(node);


More information about the svn-soc-all mailing list