aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-nitb/ctrl_commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src/osmo-nitb/ctrl_commands.c')
-rw-r--r--openbsc/src/osmo-nitb/ctrl_commands.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsc/src/osmo-nitb/ctrl_commands.c b/openbsc/src/osmo-nitb/ctrl_commands.c
index f8fd6e976..3637669fd 100644
--- a/openbsc/src/osmo-nitb/ctrl_commands.c
+++ b/openbsc/src/osmo-nitb/ctrl_commands.c
@@ -404,12 +404,11 @@ CTRL_HELPER_SET_STATUS(net_smsqueue);
static int get_net_smsqueue(struct ctrl_cmd *cmd, void *data)
{
struct gsm_network *net = cmd->node;
- struct gsm_sms_queue *smsq = net->sms_queue;
if (!strcmp(cmd->variable,"smsqueue"))
cmd->reply = talloc_strdup(cmd, "\n");
- sms_queue_pending_stat(smsq, cmd->reply);
+ sms_queue_pending_stat(net, cmd);
if (!cmd->reply) {
cmd->reply = "OOM";