Fix eq_f1ap_cell_info(): correct TAC comparison

Check that both a->tac/b->tac are present, or both not present. Then,
check they are equal if present.
This commit is contained in:
Robert Schmidt
2024-12-16 16:18:10 +01:00
parent 6b7055bb37
commit 3de8a746fe
+4 -1
View File
@@ -53,7 +53,10 @@ bool eq_f1ap_cell_info(const f1ap_served_cell_info_t *a, const f1ap_served_cell_
{
_F1_EQ_CHECK_LONG(a->nr_cellid, b->nr_cellid);
_F1_EQ_CHECK_INT(a->nr_pci, b->nr_pci);
_F1_EQ_CHECK_INT(*a->tac, *b->tac);
if ((!a->tac) ^ (!b->tac))
return false;
if (a->tac)
_F1_EQ_CHECK_INT(*a->tac, *b->tac);
_F1_EQ_CHECK_INT(a->mode, b->mode);
if (a->mode == F1AP_MODE_TDD) {
/* TDD */