summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc/smpp_openbsc.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-11-09 19:48:48 +0100
committerHarald Welte <laforge@gnumonks.org>2012-11-16 22:00:10 +0100
commit1a2993adb7031c7e908f478e64cf73b44419b500 (patch)
treeffb6c35a4b70289db6ee447540e8c99540e53a93 /openbsc/src/libmsc/smpp_openbsc.c
parent9122c13933ad5805fe5f8afd76736b76fd09d9cd (diff)
SMPP: fix subscriber reference leak.
subscr_get_by_* is already increasing the refcount, we shouldn't do that a second time (thanks, Holger).
Diffstat (limited to 'openbsc/src/libmsc/smpp_openbsc.c')
-rw-r--r--openbsc/src/libmsc/smpp_openbsc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libmsc/smpp_openbsc.c b/openbsc/src/libmsc/smpp_openbsc.c
index 4257cb62e..4a54e4780 100644
--- a/openbsc/src/libmsc/smpp_openbsc.c
+++ b/openbsc/src/libmsc/smpp_openbsc.c
@@ -118,7 +118,7 @@ static int submit_to_sms(struct gsm_sms **psms, struct gsm_network *net,
sms = sms_alloc();
sms->source = SMS_SOURCE_SMPP;
sms->smpp.sequence_nr = submit->sequence_number;
- sms->receiver = subscr_get(dest);
+ sms->receiver = dest;
strncpy(sms->dest_addr, dest->extension, sizeof(sms->dest_addr)-1);
sms->sender = subscr_get_by_id(net, 1);