mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 18:00:18 +01:00
device/team: fix assuming non-NULL team-config in NMDeviceTeam::act_stage1_prepare()
This commit is contained in:
parent
0a04b55491
commit
4f6fd1bf0e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue