client: move ClientSlot from bankd_conn to srv_conn
If the client uses a locally-configured (static) ClientId, then
the bankd_client_fsm.c code needs access to this information
at time of the connect to the server, not just when connecting
to the bankd.
Change-Id: I8238b4c56c723f9edcf1042f8a7793208c42f15c
diff --git a/src/remsim_client.c b/src/remsim_client.c
index aa58032..ccf1d22 100644
--- a/src/remsim_client.c
+++ b/src/remsim_client.c
@@ -105,9 +105,9 @@
break;
case RsproPDUchoice_PR_configClientReq:
/* store/set the clientID as instructed by the server */
- if (!g_client->clslot)
- g_client->clslot = talloc_zero(g_client, ClientSlot_t);
- *g_client->clslot = pdu->msg.choice.configClientReq.clientSlot;
+ if (!g_client->srv_conn.clslot)
+ g_client->srv_conn.clslot = talloc_zero(g_client, ClientSlot_t);
+ *g_client->srv_conn.clslot = pdu->msg.choice.configClientReq.clientSlot;
/* store/set the bankd ip/port as instructed by the server */
osmo_talloc_replace_string(g_client, &g_client->bankd_host,
rspro_IpAddr2str(&pdu->msg.choice.configClientReq.bankd.ip));