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

Fixes: ba4ce843fa ('libnm-core: add backend for GVariant de/serialization of link_watchers.')
(cherry picked from commit 61b1d1e963)
This commit is contained in:
Thomas Haller 2019-05-22 12:54:53 +02:00
parent c28f9780d9
commit 3309af1a2e
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -6354,7 +6354,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;