Valid default values.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 13 Oct 2008 20:46:30 +0000 (22:46 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 13 Oct 2008 20:46:30 +0000 (22:46 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
postlicyd/counters.c

index 477e6e1..d80b934 100644 (file)
@@ -68,6 +68,8 @@ static bool counter_filter_constructor(filter_t *filter)
         return false;                                                          \
     }
 
         return false;                                                          \
     }
 
+    config->hard_threshold = 1;
+    config->soft_threshold = 1;
     foreach (filter_param_t *param, filter->params) {
         switch (param->type) {
           FILTER_PARAM_PARSE_INT(COUNTER, config->counter);
     foreach (filter_param_t *param, filter->params) {
         switch (param->type) {
           FILTER_PARAM_PARSE_INT(COUNTER, config->counter);