summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2021-06-13 22:09:54 +0200
committerHans Dedecker <dedeckeh@gmail.com>2021-06-13 22:12:54 +0200
commit564d25e53fad925fa3ed56e3004c107d40925fa4 (patch)
treecb7c9e56b50d1c4105e00b7788c45e79355ae101
parenta12fcb3cee2d489b8648a2398812d7bed2f25faa (diff)
config: fix ra_flags none setting
Fixes commit a12fcb3cee2d489b8648a2398812d7bed2f25faa which wrongly removed setting ra_flags to 0 Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
-rw-r--r--src/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index e46ecb0..c7d2ad3 100644
--- a/src/config.c
+++ b/src/config.c
@@ -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);