--- 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
*/