]> granicus.if.org Git - ipset/commitdiff
Fix misleading error message with comment extension
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Wed, 24 Feb 2016 20:10:19 +0000 (21:10 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Wed, 24 Feb 2016 20:10:19 +0000 (21:10 +0100)
Error message was totally misleading when comment
extension was used when the set was defined without
the extension. Reported by Drunkard Zhang.

lib/errcode.c

index 60220c709b55311c49d0e0126e162409d8132078..d356264a369bc68eba8231bf66790f86b824d1eb 100644 (file)
@@ -75,7 +75,7 @@ static const struct ipset_errcode_table core_errcode_table[] = {
        { IPSET_ERR_COUNTER, 0,
          "Packet/byte counters cannot be used: set was created without counter support" },
        { IPSET_ERR_COMMENT, 0,
-         "Comment string is too long!" },
+         "Comment cannot be used: set was created without comment support" },
        { IPSET_ERR_SKBINFO, 0,
          "Skbinfo mapping cannot be used: set was created without skbinfo support" },