Fix parsing of '*' device and 'all' protocol value
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 22 Mar 2013 14:07:14 +0000 (15:07 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 22 Mar 2013 14:07:53 +0000 (15:07 +0100)
options.c

index ef5eaa71e9e6e4ab1141e891f83b68aeaaae0670..031de835fe923e5385f6e1d58550838ff57f1526 100644 (file)
--- a/options.c
+++ b/options.c
@@ -206,6 +206,7 @@ fw3_parse_device(void *ptr, const char *val, bool is_list)
        {
                dev.set = true;
                dev.any = true;
+               put_value(ptr, &dev, sizeof(dev), is_list);
                return true;
        }
 
@@ -516,6 +517,7 @@ fw3_parse_protocol(void *ptr, const char *val, bool is_list)
        if (!strcmp(val, "all"))
        {
                proto.any = true;
+               put_value(ptr, &proto, sizeof(proto), is_list);
                return true;
        }
        else if (!strcmp(val, "icmpv6"))