summaryrefslogtreecommitdiff
path: root/libnm-core/nm-setting-team.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-03-19 14:32:21 +0100
committerThomas Haller <thaller@redhat.com>2019-03-25 09:12:33 +0100
commit126348d4be74f8c6c23e0dbcbcaf4c6e281582f2 (patch)
tree6c22f2b381b6858256d06c6ca30cb5204c3e2029 /libnm-core/nm-setting-team.c
parent1b1ef52ff8de8812105d1c132ec08b6dab892695 (diff)
downloadNetworkManager-126348d4be74f8c6c23e0dbcbcaf4c6e281582f2.tar.gz
cli: implement team:runner-tx-hash as multilist property
Diffstat (limited to 'libnm-core/nm-setting-team.c')
-rw-r--r--libnm-core/nm-setting-team.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libnm-core/nm-setting-team.c b/libnm-core/nm-setting-team.c
index ec9d2ba02e..9fd070c1fe 100644
--- a/libnm-core/nm-setting-team.c
+++ b/libnm-core/nm-setting-team.c
@@ -1003,6 +1003,7 @@ nm_setting_team_get_runner_tx_hash (NMSettingTeam *setting, guint idx)
NMSettingTeamPrivate *priv = NM_SETTING_TEAM_GET_PRIVATE (setting);
g_return_val_if_fail (NM_IS_SETTING_TEAM (setting), NULL);
+ g_return_val_if_fail (priv->runner_tx_hash, NULL);
g_return_val_if_fail (idx < priv->runner_tx_hash->len, NULL);
return priv->runner_tx_hash->pdata[idx];
@@ -1023,6 +1024,7 @@ nm_setting_team_remove_runner_tx_hash (NMSettingTeam *setting, guint idx)
NMSettingTeamPrivate *priv = NM_SETTING_TEAM_GET_PRIVATE (setting);
g_return_if_fail (NM_IS_SETTING_TEAM (setting));
+ g_return_if_fail (priv->runner_tx_hash);
g_return_if_fail (idx < priv->runner_tx_hash->len);
g_ptr_array_remove_index (priv->runner_tx_hash, idx);