summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network/networkd-dhcp-common.c2
-rw-r--r--src/network/networkd-network.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/network/networkd-dhcp-common.c b/src/network/networkd-dhcp-common.c
index 0c0a76d362..c1de646a17 100644
--- a/src/network/networkd-dhcp-common.c
+++ b/src/network/networkd-dhcp-common.c
@@ -1299,7 +1299,7 @@ int config_parse_uplink(
name = &network->router_uplink_name;
} else if (streq(section, "DHCPv6PrefixDelegation")) {
index = &network->dhcp6_pd_uplink_index;
- name = &network->dhcp_server_uplink_name;
+ name = &network->dhcp6_pd_uplink_name;
accept_none = false;
} else
assert_not_reached();
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index d551b23531..a659f00f64 100644
--- a/src/network/networkd-network.c
+++ b/src/network/networkd-network.c
@@ -756,6 +756,7 @@ static Network *network_free(Network *network) {
free(network->dhcp_server_timezone);
free(network->dhcp_server_uplink_name);
free(network->router_uplink_name);
+ free(network->dhcp6_pd_uplink_name);
for (sd_dhcp_lease_server_type_t t = 0; t < _SD_DHCP_LEASE_SERVER_TYPE_MAX; t++)
free(network->dhcp_server_emit[t].addresses);