]> granicus.if.org Git - ipset/commitdiff
libipset: print third element in debugging
authorSergey Popovich <popovich_sergei@mail.ru>
Mon, 5 May 2014 08:07:05 +0000 (11:07 +0300)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 6 May 2014 05:34:08 +0000 (07:34 +0200)
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>
lib/parse.c

index be6e8336cc6c2b4804f8dec309c988f1ff3f3ac3..6ed65cb78717f7c1ced9d7457658c879f168c828 100644 (file)
@@ -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;