summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-09-15 16:00:16 +0200
committerThomas Haller <thaller@redhat.com>2020-09-15 16:06:33 +0200
commitef26ed3092a0a76e1fc54343eaed789088718104 (patch)
tree3bcbb2f83efaf1df41ff5c05ec11df2055934ae5
parent81d7009956940292f8035c8007b539deefb7137d (diff)
downloadNetworkManager-ef26ed3092a0a76e1fc54343eaed789088718104.tar.gz
l3cfg: fix handling of mtu during nm_l3_config_data_merge()
Fixes: 25d404dadb04 ('l3cfg: add more API to NML3ConfigData')
-rw-r--r--src/nm-l3-config-data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-l3-config-data.c b/src/nm-l3-config-data.c
index f5f8d8d0f3..8bae0693bb 100644
--- a/src/nm-l3-config-data.c
+++ b/src/nm-l3-config-data.c
@@ -2282,7 +2282,7 @@ nm_l3_config_data_merge (NML3ConfigData *self,
if (self->ip6_privacy == NM_SETTING_IP6_CONFIG_PRIVACY_UNKNOWN)
self->ip6_privacy = src->ip6_privacy;
- if (self->mtu != 0u)
+ if (self->mtu == 0u)
self->mtu = src->mtu;
/* self->source does not get merged. */