device: fix wrong string compare in _commit_mtu()

Fixes: e6628fa27c ('ipv6: add 'disabled' method')

https://bugzilla.redhat.com/show_bug.cgi?id=1753128
(cherry picked from commit 5f284e1574)
This commit is contained in:
Beniamino Galvani 2019-09-18 10:50:43 +02:00 committed by Thomas Haller
parent 722cddfad8
commit 7b9abe94bf

View file

@ -9371,7 +9371,7 @@ _commit_mtu (NMDevice *self, const NMIP4Config *config)
s_ip6 = nm_device_get_applied_setting (self, NM_TYPE_SETTING_IP6_CONFIG);
if ( s_ip6
&& !NM_IN_STRSET (nm_setting_ip_config_get_method (s_ip6),
NM_SETTING_IP6_CONFIG_METHOD_IGNORE
NM_SETTING_IP6_CONFIG_METHOD_IGNORE,
NM_SETTING_IP6_CONFIG_METHOD_DISABLED)) {
/* the interface has IPv6 enabled. The MTU with IPv6 cannot be smaller
* then 1280.