From 468389997e6277f1defeef53a4bf56b741a79eff Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Wed, 17 Jun 2020 12:41:35 +0100 Subject: [PATCH] fix header sn check --- lib/src/upper/rlc_um_nr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/upper/rlc_um_nr.cc b/lib/src/upper/rlc_um_nr.cc index b1d12fe14..99ca4b6f6 100644 --- a/lib/src/upper/rlc_um_nr.cc +++ b/lib/src/upper/rlc_um_nr.cc @@ -582,7 +582,7 @@ uint32_t rlc_um_nr_read_data_pdu_header(const uint8_t* payload, header->si = (rlc_nr_si_field_t)((*ptr >> 6) & 0x03); // 2 bits SI header->sn = *ptr & 0x3F; // 6 bits SN // sanity check - if (header->si == rlc_nr_si_field_t::full_sdu and not header->sn == 0) { + if (header->si == rlc_nr_si_field_t::full_sdu and header->sn != 0) { fprintf(stderr, "Malformed PDU, reserved bits are set.\n"); return 0; }