config: fix ra_flags none setting
authorHans Dedecker <dedeckeh@gmail.com>
Sun, 13 Jun 2021 20:09:54 +0000 (22:09 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Sun, 13 Jun 2021 20:12:54 +0000 (22:12 +0200)
Fixes commit a12fcb3cee2d489b8648a2398812d7bed2f25faa which wrongly
removed setting ra_flags to 0

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/config.c

index e46ecb0d1063962603a1d9f8d1fd1b83e8a63e2e..c7d2ad316b0143a75d5542969b67eccad4bad42c 100644 (file)
@@ -778,6 +778,8 @@ int config_parse_interface(void *data, size_t len, const char *name, bool overwr
        }
 
        if ((c = tb[IFACE_ATTR_RA_FLAGS])) {
+               iface->ra_flags = 0;
+
                if (parse_ra_flags(&iface->ra_flags, c) < 0)
                        syslog(LOG_ERR, "Invalid %s value configured for interface '%s'",
                               iface_attrs[IFACE_ATTR_RA_FLAGS].name, iface->name);