aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/vty_interface_layer3.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2009-11-14 10:10:54 +0100
committerHarald Welte <laforge@netfilter.org>2009-11-14 10:10:54 +0100
commitaf8c7b497ea37c9030133de01029f2e20bb54da8 (patch)
treebc9c8f2d06842aa4200b1de0ceb5be70001daf91 /openbsc/src/vty_interface_layer3.c
parenta148233b5e03935584b842250b2b511eee782839 (diff)
silent sms: make it silent again (type 64), fix subscriber refcount leak
Diffstat (limited to 'openbsc/src/vty_interface_layer3.c')
-rw-r--r--openbsc/src/vty_interface_layer3.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsc/src/vty_interface_layer3.c b/openbsc/src/vty_interface_layer3.c
index 124a368f..fe5b667f 100644
--- a/openbsc/src/vty_interface_layer3.c
+++ b/openbsc/src/vty_interface_layer3.c
@@ -237,6 +237,8 @@ DEFUN(subscriber_send_sms,
rc = _send_sms_buffer(subscr, b, 0);
buffer_free(b);
+ subscr_put(subscr);
+
return rc;
}
@@ -253,9 +255,11 @@ DEFUN(subscriber_silent_sms,
return CMD_WARNING;
b = argv_to_buffer(argc, argv, 2);
- rc = _send_sms_buffer(subscr, b, 0);
+ rc = _send_sms_buffer(subscr, b, 64);
buffer_free(b);
+ subscr_put(subscr);
+
return rc;
}