From 7d2b7c2ba31cad234c52e5bf75c72b0d80c54373 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Thu, 14 Nov 2024 17:23:40 +0100 Subject: [PATCH] Prevent segfault in RRC Similar to the previous commit, prevent the same segfault in RRC. --- openair2/RRC/NR/rrc_gNB.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair2/RRC/NR/rrc_gNB.c b/openair2/RRC/NR/rrc_gNB.c index c018b8030a..881a6d7fee 100644 --- a/openair2/RRC/NR/rrc_gNB.c +++ b/openair2/RRC/NR/rrc_gNB.c @@ -915,7 +915,7 @@ static void rrc_gNB_process_RRCReestablishmentComplete(gNB_RRC_INST *rrc, gNB_RR * reestablishment, instead of re-requesting the CellGroupConfig from the DU. * Hence, add below hack; the solution would be to request the * CellGroupConfig from the DU when doing reestablishment. */ - if (cellGroupConfig->spCellConfig->reconfigurationWithSync != NULL) { + if (cellGroupConfig->spCellConfig && cellGroupConfig->spCellConfig->reconfigurationWithSync) { ASN_STRUCT_FREE(asn_DEF_NR_ReconfigurationWithSync, cellGroupConfig->spCellConfig->reconfigurationWithSync); cellGroupConfig->spCellConfig->reconfigurationWithSync = NULL; }