From 62b168503a6714f593f0df243cb848832207184a Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Wed, 18 Sep 2019 10:50:43 +0200 Subject: [PATCH] device: fix wrong string compare in _commit_mtu() Fixes: e6628fa27c25 ('ipv6: add 'disabled' method') https://bugzilla.redhat.com/show_bug.cgi?id=1753128 (cherry picked from commit 5f284e1574e0c3ab319b504671d263ce89ca12f9) (cherry picked from commit 7b9abe94bf6e9c29e7c50da03ab0b0099569ed41) --- src/devices/nm-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 3ee67565b..127c91eea 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -9429,7 +9429,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. -- 2.21.0