From 78fa99103d2de97a44d277befe3d7dc9ea00c267 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 16 Aug 2015 12:35:39 +0200 Subject: LLC: Don't feed length=0 frames to SNDCP / GMM --- openbsc/src/gprs/gprs_llc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3