l3cfg: fix handling of mtu during nm_l3_config_data_merge()

Fixes: 25d404dadb ('l3cfg: add more API to NML3ConfigData')
This commit is contained in:
Thomas Haller 2020-09-15 16:00:16 +02:00
parent 81d7009956
commit ef26ed3092
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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. */