From e511f724584e32cd3e618c47b8a779e7093da6bc Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Mon, 14 Jan 2019 15:16:09 +0100 Subject: [PATCH] supplicant: fix ready_count assignment Fix a wrong backport. Fixes: 1110e0bcae7ab5a4fa9df0f8bf9ec62e7ea4a17a (cherry picked from commit d0dd120ab4b5716eec87d65f2a1424718addf600) --- src/supplicant/nm-supplicant-interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/supplicant/nm-supplicant-interface.c b/src/supplicant/nm-supplicant-interface.c index b816722d05..7450fb8232 100644 --- a/src/supplicant/nm-supplicant-interface.c +++ b/src/supplicant/nm-supplicant-interface.c @@ -1176,7 +1176,7 @@ on_iface_proxy_acquired (GDBusProxy *proxy, GAsyncResult *result, gpointer user_ NULL); /* Initialize global PMF setting to 'optional' */ - priv->ready_count++; + priv->ready_count = 1; g_dbus_proxy_call (priv->iface_proxy, DBUS_INTERFACE_PROPERTIES ".Set", g_variant_new ("(ssv)", @@ -1190,7 +1190,7 @@ on_iface_proxy_acquired (GDBusProxy *proxy, GAsyncResult *result, gpointer user_ self); /* Check whether NetworkReply and AP mode are supported */ - priv->ready_count = 1; + priv->ready_count++; g_dbus_proxy_call (priv->iface_proxy, "NetworkReply", g_variant_new ("(oss)",