Skip to content

Conversation

@svc-rdkeportal01
Copy link

This PR modifies the webconfig_steering_config_apply function in source/core/wifi_ctrl_webconfig.c to add null check for the data parameter at the beginning of the function and return early to avoid segfaults.

Changes Made

  • Add null check for data parameter at function start
  • Return RETURN_ERR with error logging if null pointer detected
  • Remove redundant null check in cleanup section

Testing

  • Code compiles successfully
  • Logic preservation verified
  • Backward compatible

…ng_config_apply

The webconfig_steering_config_apply function was dereferencing the data parameter
before checking if it was NULL, which could lead to segmentation faults.

This commit adds a null check at the beginning of the function and
returns RETURN_ERR if the pointer is NULL.

Changes:
- Add null check for data parameter at function start
- Return RETURN_ERR with error logging if NULL
- Remove redundant null check in cleanup section
@svc-rdkeportal01 svc-rdkeportal01 requested a review from a team as a code owner December 5, 2025 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants