summaryrefslogtreecommitdiff
blob: 550dda05e14ff5cb019c9c9249d8c83ae2610347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- source/hook.c.orig	2003-04-11 03:09:07.000000000 +0200
+++ source/hook.c	2007-07-17 12:02:07.000000000 +0200
@@ -836,7 +836,11 @@
 	
 #ifdef WANT_TCL
 	int		tcl_ret = 0;
-#endif	
+#endif
+
+        if (which >= NUMBER_OF_LISTS) 
+        	return NO_ACTION_TAKEN;
+
 	/*
 	 * Figure out where the hooks are for the event type were asserting
 	 */