From 564d25e53fad925fa3ed56e3004c107d40925fa4 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Sun, 13 Jun 2021 22:09:54 +0200 Subject: config: fix ra_flags none setting Fixes commit a12fcb3cee2d489b8648a2398812d7bed2f25faa which wrongly removed setting ra_flags to 0 Signed-off-by: Hans Dedecker --- src/config.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3