X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2Frbl.c;h=3177334f801a831ffd001e7a35fd11fb8b595e0f;hb=7d041574a564b98145fc2235bd3c8676a1689911;hp=3651563a332c8a5ef5a70d095d11875bbb6d1647;hpb=db33734000d10dde33e52777bc76b0ee398be406;p=apps%2Fpfixtools.git diff --git a/postlicyd/rbl.c b/postlicyd/rbl.c index 3651563..3177334 100644 --- a/postlicyd/rbl.c +++ b/postlicyd/rbl.c @@ -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;