SMPP: fix subscriber reference leak.

subscr_get_by_* is already increasing the refcount, we shouldn't
do that a second time (thanks, Holger).
This commit is contained in:
Harald Welte 2012-11-09 19:48:48 +01:00
parent 9122c13933
commit 1a2993adb7
1 changed files with 1 additions and 1 deletions

View File

@ -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);