libnm: fix parsing "nsna_ping" team link watcher from GVariant

Fixes: ba4ce843fa ('libnm-core: add backend for GVariant de/serialization of link_watchers.')
This commit is contained in:
Thomas Haller
2019-05-22 12:54:53 +02:00
parent 4b8a9cc51b
commit 61b1d1e963

View File

@@ -6357,7 +6357,7 @@ _nm_utils_team_link_watchers_from_variant (GVariant *value)
} else {
if (!g_variant_lookup (watcher_var, "target-host", "&s", &target_host))
goto next;
if (!g_variant_lookup (watcher_var, "init_wait", "i", &val1))
if (!g_variant_lookup (watcher_var, "init-wait", "i", &val1))
val1 = 0;
if (!g_variant_lookup (watcher_var, "interval", "i", &val2))
val2 = 0;