From 36fdf6d8f321f7ed04554f4f88823cec33113292 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 9 Jan 2011 12:00:19 +0000 Subject: [PATCH] In get_actions(), fix the "temporary" backwards compatibility hack to accept block actions without reason. It also covered other actions that should be rejected as invalid. Reported by Billy Crook. --- actions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions.c b/actions.c index 00b4bced..8f7028bb 100644 --- a/actions.c +++ b/actions.c @@ -1,4 +1,4 @@ -const char actions_rcs[] = "$Id: actions.c,v 1.59 2010/05/26 23:01:47 ler762 Exp $"; +const char actions_rcs[] = "$Id: actions.c,v 1.60 2010/12/26 16:18:52 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/actions.c,v $ @@ -522,7 +522,7 @@ jb_err get_actions(char *line, if ((value == NULL) || (*value == '\0')) { - if (0 != strcmpic(action->name, "block")) + if (0 == strcmpic(action->name, "+block")) { /* * XXX: Temporary backwards compatibility hack. -- 2.39.2