summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Golde <nico@ngolde.de>2011-06-30 12:07:03 +0200
committerNico Golde <nico@ngolde.de>2011-06-30 12:07:03 +0200
commit45a3b4be1e63618b25aef24e6ad0102cb9e9a2e2 (patch)
tree7dda3316d183b20a24644dd98caf762fe695f22b
parent9eeff416b41c8699b24802e56b0caad72cb012ef (diff)
* fix immature assignment of settings before ms has been acquired (vty_interface/sim reader)
-rw-r--r--src/host/layer23/src/mobile/vty_interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/host/layer23/src/mobile/vty_interface.c b/src/host/layer23/src/mobile/vty_interface.c
index f1150b7..33f5296 100644
--- a/src/host/layer23/src/mobile/vty_interface.c
+++ b/src/host/layer23/src/mobile/vty_interface.c
@@ -471,12 +471,13 @@ DEFUN(sim_reader, sim_reader_cmd, "sim reader MS_NAME",
"SIM actions\nSelect SIM from reader\nName of MS (see \"show ms\")")
{
struct osmocom_ms *ms;
- struct gsm_settings *set = &ms->settings;
+ struct gsm_settings *set;
ms = get_ms(argv[0], vty);
if (!ms)
return CMD_WARNING;
+ set = &ms->settings;
if (ms->subscr.sim_valid) {
vty_out(vty, "SIM already present, remove first!%s",
VTY_NEWLINE);