aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Zaborowski <andrew.zaborowski@intel.com>2022-09-20 15:31:58 +0200
committerDenis Kenzior <denkenz@gmail.com>2022-09-20 10:02:52 -0500
commit362d7da821ac82d3f510b6a11b0e3331c4e7f7df (patch)
tree9c546bd83abbd2d60b78bb1d2221e09e8918323a
parent9af15de31e6742c02045215e503890d9ab5636af (diff)
netconfig: Set .v6_configured when we set an address
The DNS getters won't work without this as they return NULL if .v6_configured is false. Fixes: 6adf0f5db455 ("netconfig: Create SLAAC address")
-rw-r--r--ell/netconfig.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ell/netconfig.c b/ell/netconfig.c
index 7a9ee89b..e5c7b51f 100644
--- a/ell/netconfig.c
+++ b/ell/netconfig.c
@@ -750,6 +750,7 @@ static void netconfig_add_slaac_address(struct l_netconfig *nc,
l_queue_push_tail(nc->addresses.current, nc->v6_address);
l_queue_push_tail(nc->addresses.added, nc->v6_address);
+ nc->v6_configured = true;
netconfig_emit_event(nc, AF_INET6, L_NETCONFIG_EVENT_CONFIGURE);
/* TODO: set a renew timeout */