diff options
author | Thomas Haller <thaller@redhat.com> | 2016-08-24 10:30:24 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-08-24 10:30:34 +0200 |
commit | 4f6fd1bf0ed57abe3e208664a4de23ee11c67f57 (patch) | |
tree | e929e7b2f991e7b3bdca0bc8f5c4e73848a0bbc5 | |
parent | 0a04b55491d98a3450cf1750ec96d4c4c819fa5b (diff) | |
download | NetworkManager-4f6fd1bf0ed57abe3e208664a4de23ee11c67f57.tar.gz |
device/team: fix assuming non-NULL team-config in NMDeviceTeam::act_stage1_prepare()
-rw-r--r-- | src/devices/team/nm-device-team.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/team/nm-device-team.c b/src/devices/team/nm-device-team.c index d32d3cc9b0..09eefe7014 100644 --- a/src/devices/team/nm-device-team.c +++ b/src/devices/team/nm-device-team.c @@ -575,7 +575,7 @@ act_stage1_prepare (NMDevice *device, NMDeviceStateReason *reason) * have a PID, then we must fail. */ cfg = teamdctl_config_get_raw (priv->tdc); - if (cfg && strcmp (cfg, nm_setting_team_get_config (s_team)) == 0) { + if (cfg && nm_streq0 (cfg, nm_setting_team_get_config (s_team))) { _LOGD (LOGD_TEAM, "using existing matching teamd config"); return NM_ACT_STAGE_RETURN_SUCCESS; } |