diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-08-29 11:53:09 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-08-29 11:53:09 +0200 |
commit | 5e776307eb708e5868e931b0214effef1fae13c7 (patch) | |
tree | 36aab122056e0d66561b32f0764d6d55407974e3 | |
parent | 291aba340aebff6675a3b7b2a0f0194e452a3608 (diff) |
nitb: Move subscr_put up and print the return of the paging message
-rw-r--r-- | openbsc/src/libmsc/vty_interface_layer3.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/openbsc/src/libmsc/vty_interface_layer3.c b/openbsc/src/libmsc/vty_interface_layer3.c index 79c345771..05a096cf1 100644 --- a/openbsc/src/libmsc/vty_interface_layer3.c +++ b/openbsc/src/libmsc/vty_interface_layer3.c @@ -355,15 +355,13 @@ DEFUN(subscriber_silent_call_start, type = RSL_CHANNEED_ANY; /* Defaults to ANY */ rc = gsm_silent_call_start(subscr, vty, type); + subscr_put(subscr); if (rc <= 0) { - vty_out(vty, "%% Subscriber not attached%s", - VTY_NEWLINE); - subscr_put(subscr); + vty_out(vty, "%% Subscriber not attached: %d%s", + rc, VTY_NEWLINE); return CMD_WARNING; } - subscr_put(subscr); - return CMD_SUCCESS; } |