commit | 78fa99103d2de97a44d277befe3d7dc9ea00c267 | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Sun Aug 16 12:35:39 2015 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Tue Aug 18 19:35:01 2015 +0200 |
tree | 8a183824101349800f2b224dd842fea9844b1863 | |
parent | 6a19dd0d31da3216a0620947f2e9f7550179db65 [diff] [blame] |
LLC: Don't feed length=0 frames to SNDCP / GMM
diff --git a/openbsc/src/gprs/gprs_llc.c b/openbsc/src/gprs/gprs_llc.c index 9b5bf4b..2d5d9be 100644 --- a/openbsc/src/gprs/gprs_llc.c +++ b/openbsc/src/gprs/gprs_llc.c
@@ -679,7 +679,7 @@ 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: