X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2Frbl.c;h=3177334f801a831ffd001e7a35fd11fb8b595e0f;hb=5fc57f7c291b99db643dc22a814087b34b9f4b59;hp=ed4ab2b127c05d458baada40ce4b6e6b1b638bab;hpb=dd53acce112e59a9ba35e3389c9bad4ea81480ca;p=apps%2Fpfixtools.git diff --git a/postlicyd/rbl.c b/postlicyd/rbl.c index ed4ab2b..3177334 100644 --- a/postlicyd/rbl.c +++ b/postlicyd/rbl.c @@ -252,7 +252,7 @@ static bool rbl_filter_constructor(filter_t *filter) return false; \ } - foreach (filter_params_t *param, filter->params) { + foreach (filter_param_t *param, filter->params) { switch (param->type) { /* file parameter is: * [no]lock:weight:filename @@ -317,7 +317,7 @@ static bool rbl_filter_constructor(filter_t *filter) case ATK_HARD_THRESHOLD: { char *next; data->hard_threshold = strtol(param->value, &next, 10); - PARSE_CHECK(*next, "invalid threshold value %s", param->value); + PARSE_CHECK(!*next, "invalid threshold value %s", param->value); } break; /* soft_threshold parameter is an integer. @@ -329,7 +329,7 @@ static bool rbl_filter_constructor(filter_t *filter) case ATK_SOFT_THRESHOLD: { char *next; data->soft_threshold = strtol(param->value, &next, 10); - PARSE_CHECK(*next, "invalid threshold value %s", param->value); + PARSE_CHECK(!*next, "invalid threshold value %s", param->value); } break; default: break;