return a error case before a SEGV if the pointer is null
This commit is contained in:
committed by
Robert Schmidt
parent
bc238f9b2f
commit
10f304d9da
@@ -368,6 +368,11 @@ void rx_prach0(PHY_VARS_eNB *eNB,
|
|||||||
uint8_t update_TA = 4;
|
uint8_t update_TA = 4;
|
||||||
uint8_t update_TA2 = 1;
|
uint8_t update_TA2 = 1;
|
||||||
|
|
||||||
|
if (!eNB) {
|
||||||
|
LOG_E(PHY, "inconsistent case\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
switch (eNB->frame_parms.N_RB_DL) {
|
switch (eNB->frame_parms.N_RB_DL) {
|
||||||
case 6:
|
case 6:
|
||||||
update_TA = 16;
|
update_TA = 16;
|
||||||
|
|||||||
Reference in New Issue
Block a user