summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSergey Popovich <popovich_sergei@mail.ru>2014-05-05 11:07:05 +0300
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2014-05-06 07:34:08 +0200
commit3e245120e07a45be0f00d3a4ab71a7ec859d6ae3 (patch)
tree83646fdc848fe2314f12501e57e84eca385c1c97 /lib
parent12452d6a15fdc50ce53a1fe428fd2520979d7aa6 (diff)
libipset: print third element in debugging
We have that done for first and second elements when parsing element string, do this for third element for convenience. Signed-off-by: Sergey Popovich <popovich_sergei@mail.ru> Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Diffstat (limited to 'lib')
-rw-r--r--lib/parse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/parse.c b/lib/parse.c
index be6e833..6ed65cb 100644
--- a/lib/parse.c
+++ b/lib/parse.c
@@ -1979,8 +1979,10 @@ ipset_parse_elem(struct ipset_session *session,
D("parse elem part two: %s", a);
parse_elem(session, type, IPSET_DIM_TWO, a);
}
- if (type->dimension > IPSET_DIM_TWO && b != NULL)
+ if (type->dimension > IPSET_DIM_TWO && b != NULL) {
+ D("parse elem part three: %s", b);
parse_elem(session, type, IPSET_DIM_THREE, b);
+ }
goto out;