[netfilter-cvslog] r4327 - trunk/nfsim/core

rusty at netfilter.org rusty at netfilter.org
Sat Oct 8 17:28:02 CEST 2005


Author: rusty at netfilter.org
Date: 2005-10-08 17:28:00 +0200 (Sat, 08 Oct 2005)
New Revision: 4327

Modified:
   trunk/nfsim/core/expect.c
Log:
Max Kellerman's patch to fix nfsim_log to work before command is parsed.
Presumably possible with backticks patch, and a harmless change anyway.
	


Modified: trunk/nfsim/core/expect.c
===================================================================
--- trunk/nfsim/core/expect.c	2005-10-08 15:12:39 UTC (rev 4326)
+++ trunk/nfsim/core/expect.c	2005-10-08 15:28:00 UTC (rev 4327)
@@ -130,6 +130,9 @@
 	struct expect *e;
 	bool ret = false;
 
+	if (current_command == NULL)
+		return false;
+
 	/* Only allow each pattern to match once, so we can easily
 	 * expect something to happen twice. */
 	for (e = expect; e; e = e->next) {




More information about the netfilter-cvslog mailing list