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.
34 lines
1.4 KiB
34 lines
1.4 KiB
From 6a11c906d0604748db9a81bf470c821db2b862fb Mon Sep 17 00:00:00 2001
|
|
From: Lubomir Rintel <lkundrak@v3.sk>
|
|
Date: Mon, 27 May 2024 00:03:23 +0200
|
|
Subject: [PATCH 09/11] sim/qmi: do not leak access technology name
|
|
|
|
---
|
|
src/mm-sim-qmi.c | 8 +++++---
|
|
1 file changed, 5 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/src/mm-sim-qmi.c b/src/mm-sim-qmi.c
|
|
index 03a442403..1d24c23b4 100644
|
|
--- a/src/mm-sim-qmi.c
|
|
+++ b/src/mm-sim-qmi.c
|
|
@@ -991,11 +991,13 @@ set_preferred_networks_reload_ready (MMBaseSim *self,
|
|
}
|
|
/* Check if there are access technology bits requested but unset */
|
|
if ((loaded_act & set_act) != set_act) {
|
|
- MMModemAccessTechnology unset = set_act & ~loaded_act;
|
|
+ MMModemAccessTechnology unset = set_act & ~loaded_act;
|
|
+ gchar *act;
|
|
|
|
+ act = mm_modem_access_technology_build_string_from_mask (unset);
|
|
mm_obj_warn (self, "access technologies '%s' not set for operator code '%s'",
|
|
- mm_modem_access_technology_build_string_from_mask (unset),
|
|
- set_op_code);
|
|
+ act, set_op_code);
|
|
+ g_free (act);
|
|
error = g_error_new (MM_CORE_ERROR, MM_CORE_ERROR_UNSUPPORTED,
|
|
"Access technology unsupported by modem or SIM");
|
|
break;
|
|
--
|
|
2.45.2
|
|
|