From 538f38cf54628727d0e7366196eb0163452ab7a7 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Thu, 11 Jul 2019 15:43:21 +0200 Subject: [PATCH] Let PDCP Control PDUs be processed --- lib/src/upper/pdcp_entity.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/upper/pdcp_entity.cc b/lib/src/upper/pdcp_entity.cc index 64a3cee44..d8acf43b9 100644 --- a/lib/src/upper/pdcp_entity.cc +++ b/lib/src/upper/pdcp_entity.cc @@ -195,7 +195,8 @@ void pdcp_entity::write_pdu(unique_byte_buffer_t pdu) (do_encryption) ? "true" : "false"); // Sanity check - if (pdu->N_bytes <= sn_len_bytes) { + if (pdu->N_bytes < sn_len_bytes) { + log->debug("Ignoring PDCP PDU: size=%d, sn_len_bytes=%d\n", pdu->N_bytes, sn_len_bytes); return; }