From 76d76012f0653588fc02974aed4299552f719f01 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Wed, 24 Feb 2016 21:10:19 +0100 Subject: Fix misleading error message with comment extension 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/errcode.c b/lib/errcode.c index 60220c7..d356264 100644 --- a/lib/errcode.c +++ b/lib/errcode.c @@ -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" }, -- cgit v1.2.3