From 16b0b5f0ec62fdbf16d6e81069cfec47721e440b Mon Sep 17 00:00:00 2001
From: Cedric Roux <cedric.roux@eurecom.fr>
Date: Wed, 15 Feb 2023 22:50:40 +0100
Subject: [PATCH] bugfix: length type too short

On a setup, length of cellGroupConfig was > 255.

Using uint8_t to store the length is thus wrong
and gives a bad encoding of the cellGroupConfig.

So let's use uint32_t to store length instead of uint8_t.
---
 openair2/COMMON/f1ap_messages_types.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/openair2/COMMON/f1ap_messages_types.h b/openair2/COMMON/f1ap_messages_types.h
index e615005991..cd89e8d871 100644
--- a/openair2/COMMON/f1ap_messages_types.h
+++ b/openair2/COMMON/f1ap_messages_types.h
@@ -358,11 +358,11 @@ typedef struct cu_to_du_rrc_information_s {
 
 typedef struct du_to_du_rrc_information_s {
   uint8_t * cellGroupConfig;
-  uint8_t   cellGroupConfig_length;
+  uint32_t  cellGroupConfig_length;
   uint8_t * measGapConfig;
-  uint8_t   measGapConfig_length;
+  uint32_t  measGapConfig_length;
   uint8_t * requestedP_MaxFR1;
-  uint8_t   requestedP_MaxFR1_length;
+  uint32_t  requestedP_MaxFR1_length;
 }du_to_cu_rrc_information_t;
 
 typedef enum QoS_information_e {
-- 
2.26.2