You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ModemManager/SOURCES/0008-bearer-qmi-fix-a-copy-...

28 lines
952 B

From f8f41b677a234f98085854253b2a1a42b0f09d6f Mon Sep 17 00:00:00 2001
From: Lubomir Rintel <lkundrak@v3.sk>
Date: Sun, 26 May 2024 23:59:47 +0200
Subject: [PATCH 08/11] bearer/qmi: fix a copy'n'paste error
Probably not a real issue, given if there's a password there's probably
an user name too.
---
src/mm-bearer-qmi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mm-bearer-qmi.c b/src/mm-bearer-qmi.c
index 504134759..4e64e220c 100644
--- a/src/mm-bearer-qmi.c
+++ b/src/mm-bearer-qmi.c
@@ -1330,7 +1330,7 @@ build_start_network_input (ConnectContext *ctx)
if (ctx->auth != QMI_WDS_AUTHENTICATION_NONE) {
if (ctx->user)
qmi_message_wds_start_network_input_set_username (input, ctx->user, NULL);
- if (ctx->user)
+ if (ctx->password)
qmi_message_wds_start_network_input_set_password (input, ctx->password, NULL);
}
}
--
2.45.2