summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2017-08-07 14:01:07 +0100
committerPablo Neira Ayuso <pablo@gnumonks.org>2017-08-08 10:20:20 +0200
commit31655d84faa7f7fe823111856ae2035d44aca0eb (patch)
treeefe80e2d0a6e76c2069e34f3ca9e3f91726951b7 /openbsc/src/libmsc
parent3e4295287f1a2866e6e512517a2c94f608ecbd30 (diff)
libmsc: remove duplicate lines in deliver_to_esme()
This code is accidentally doing the same thing twice, remove it. Change-Id: I68087a850399e22951d2407e4d8a09c671a775c9
Diffstat (limited to 'openbsc/src/libmsc')
-rw-r--r--openbsc/src/libmsc/smpp_openbsc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/openbsc/src/libmsc/smpp_openbsc.c b/openbsc/src/libmsc/smpp_openbsc.c
index 36ad0a2ef..c9379ec07 100644
--- a/openbsc/src/libmsc/smpp_openbsc.c
+++ b/openbsc/src/libmsc/smpp_openbsc.c
@@ -676,8 +676,6 @@ static int deliver_to_esme(struct osmo_esme *esme, struct gsm_sms *sms,
} else {
deliver.sm_length = sms->user_data_len;
memcpy(deliver.short_message, sms->user_data, deliver.sm_length);
- deliver.sm_length = sms->user_data_len;
- memcpy(deliver.short_message, sms->user_data, deliver.sm_length);
}
if (esme->acl && esme->acl->osmocom_ext && conn->lchan)