aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/gprs_sndcp.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-07-02 10:29:06 +0200
committerHarald Welte <laforge@gnumonks.org>2010-07-02 10:29:06 +0200
commit8f0c0a3a3cf161d627c6ca3f055619da91526b76 (patch)
treee37f76a5f72eda4dcfab547172995783c9666b63 /openbsc/src/gprs/gprs_sndcp.c
parent11ff3e8ec271fdb62b28be802980d7eded5762fc (diff)
[SGSN] SNDCP: Actually copy the payload data in the defrag queue entry
Prior to this patch our defragmented messages always consisted of 00-bytes
Diffstat (limited to 'openbsc/src/gprs/gprs_sndcp.c')
-rw-r--r--openbsc/src/gprs/gprs_sndcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/gprs/gprs_sndcp.c b/openbsc/src/gprs/gprs_sndcp.c
index 46753c76c..8ca919469 100644
--- a/openbsc/src/gprs/gprs_sndcp.c
+++ b/openbsc/src/gprs/gprs_sndcp.c
@@ -103,6 +103,8 @@ static int defrag_enqueue(struct gprs_sndcp_entity *sne, uint8_t seg_nr,
sne->defrag.seg_have |= (1 << seg_nr);
sne->defrag.tot_len += data_len;
+ memcpy(dqe->data, data, data_len);
+
return 0;
}