Merge remote-tracking branch 'origin/issue_923' into integration_2025_w13 (!3338)
prevent access to NULL pointer in RELEASE_IE_FROMLIST Closes #923
This commit is contained in:
@@ -78,6 +78,10 @@
|
||||
// Prints an error if ID not found in list.
|
||||
#define RELEASE_IE_FROMLIST(SOURCE, TARGET, FIELD) \
|
||||
do { \
|
||||
if (!TARGET) { \
|
||||
LOG_E(NR_MAC, "Target list not present, impossible to release element\n"); \
|
||||
break; \
|
||||
} \
|
||||
for (int iI = 0; iI < SOURCE->list.count; iI++) { \
|
||||
long eL = *SOURCE->list.array[iI]; \
|
||||
int iJ; \
|
||||
|
||||
Reference in New Issue
Block a user