diff options
author | Harald Welte <laforge@gnumonks.org> | 2015-08-16 12:35:39 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2015-08-18 19:35:01 +0200 |
commit | 78fa99103d2de97a44d277befe3d7dc9ea00c267 (patch) | |
tree | 8a183824101349800f2b224dd842fea9844b1863 /openbsc | |
parent | 6a19dd0d31da3216a0620947f2e9f7550179db65 (diff) |
LLC: Don't feed length=0 frames to SNDCP / GMM
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/gprs/gprs_llc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gprs/gprs_llc.c b/openbsc/src/gprs/gprs_llc.c index 9b5bf4b49..2d5d9be52 100644 --- a/openbsc/src/gprs/gprs_llc.c +++ b/openbsc/src/gprs/gprs_llc.c @@ -679,7 +679,7 @@ int gprs_llc_rcvmsg(struct msgb *msg, struct tlv_parsed *tv) return rc; /* llhp.data is only set when we need to send LL_[UNIT]DATA_IND up */ - if (llhp.data) { + if (llhp.data && llhp.data_len) { msgb_gmmh(msg) = llhp.data; switch (llhp.sapi) { case GPRS_SAPI_GMM: |