[Bro] Trying to get drop_source_and_terminate working

Vern Paxson vern at icir.org
Fri Jun 4 14:26:30 PDT 2010


> 1275573771.744509 /usr/local/bro/share/bro/notice-action-filters.bro,
> line 74 (terminate_connection): run-time error, value used but not set
> 
> Any ideas?

Try the appended patch and let me know if it fixes the problem.

		Vern


Index: policy/notice-action-filters.bro
===================================================================
--- policy/notice-action-filters.bro	(revision 6988)
+++ policy/notice-action-filters.bro	(working copy)
@@ -67,11 +67,10 @@
 	return NOTICE_DROP;
 	}
 
-global terminate_connection: function(c: connection);
 function drop_source_and_terminate(n: notice_info, a: NoticeAction): NoticeAction
 	{
 	if ( n?$conn )
-		terminate_connection(n$conn);
+		TerminateConnection::terminate_connection(n$conn);
 
 	return NOTICE_DROP;
 	}



More information about the Bro mailing list