return a error case before a SEGV if the pointer is null

This commit is contained in:
Laurent THOMAS
2025-09-09 18:07:31 +02:00
committed by Robert Schmidt
parent bc238f9b2f
commit 10f304d9da
+5
View File
@@ -368,6 +368,11 @@ void rx_prach0(PHY_VARS_eNB *eNB,
uint8_t update_TA = 4;
uint8_t update_TA2 = 1;
if (!eNB) {
LOG_E(PHY, "inconsistent case\n");
return;
}
switch (eNB->frame_parms.N_RB_DL) {
case 6:
update_TA = 16;