]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
mark: fix numeric mark value parsing
authorPatrick McHardy <kaber@trash.net>
Thu, 18 Apr 2013 17:13:16 +0000 (19:13 +0200)
committerPatrick McHardy <kaber@trash.net>
Thu, 18 Apr 2013 17:13:16 +0000 (19:13 +0200)
Signed-off-by: Patrick McHardy <kaber@trash.net>
src/datatype.c

index 3a2f19d83a35f6ffed186896338f24e4881de29d..3c17e929f8992e848362234e2335bbeaa8534624 100644 (file)
@@ -585,6 +585,13 @@ static void mark_type_print(const struct expr *expr)
 static struct error_record *mark_type_parse(const struct expr *sym,
                                            struct expr **res)
 {
+       struct error_record *erec;
+
+       erec = sym->dtype->basetype->parse(sym, res);
+       if (erec != NULL)
+               return erec;
+       if (*res)
+               return NULL;
        return symbolic_constant_parse(sym, mark_tbl, res);
 }