X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fnetlink.c;h=b998cf316c6522b09f068a04b83cb7956c3c305f;hp=806265a28001ae49dddb839bb2ddd955163fb7e4;hb=48622c3d7c8c0d3ab07cda8a1947c33bfe31df73;hpb=6b0e22a545bb3e4be1684a9fd6d2b48259ba9a7f diff --git a/src/netlink.c b/src/netlink.c index 806265a2..b998cf31 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -638,7 +638,7 @@ static int ir_config(const char *key, const char *value) { } else if ((strcasecmp(key, "QDisc") == 0) || (strcasecmp(key, "Class") == 0) || (strcasecmp(key, "Filter") == 0)) { - if ((fields_num < 1) || (fields_num > 2)) { + if (fields_num > 2) { ERROR("netlink plugin: Invalid number of fields for option " "`%s'. Got %i, expected 1 or 2.", key, fields_num);