summary refs log tree commit diff
path: root/src/libnm-core-impl/nm-setting-pppoe.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2023-02-10 11:50:34 +0100
committerMichael Biebl <biebl@debian.org>2023-02-10 11:50:34 +0100
commit1372848511cb896b80b51ed1a3e9606bd9816631 (patch)
tree674792b9385bdef935988894b45f06b2af39f88c /src/libnm-core-impl/nm-setting-pppoe.c
parent40ec077ea305994c1fc2130add6787ca0c73e2c6 (diff)
New upstream version 1.42.0 upstream/1.42.0
Diffstat (limited to 'src/libnm-core-impl/nm-setting-pppoe.c')
-rw-r--r--src/libnm-core-impl/nm-setting-pppoe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnm-core-impl/nm-setting-pppoe.c b/src/libnm-core-impl/nm-setting-pppoe.c
index c4a9a89c..5c4f3c28 100644
--- a/src/libnm-core-impl/nm-setting-pppoe.c
+++ b/src/libnm-core-impl/nm-setting-pppoe.c
@@ -178,12 +178,12 @@ verify(NMSetting *setting, NMConnection *connection, GError **error)
 }
 
 static GPtrArray *
-need_secrets(NMSetting *setting)
+need_secrets(NMSetting *setting, gboolean check_rerequest)
 {
     NMSettingPppoePrivate *priv    = NM_SETTING_PPPOE_GET_PRIVATE(setting);
     GPtrArray             *secrets = NULL;
 
-    if (priv->password)
+    if (!check_rerequest && priv->password)
         return NULL;
 
     if (!(priv->password_flags & NM_SETTING_SECRET_FLAG_NOT_REQUIRED)) {