Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code scanning alert no. 14: Redundant null check due to previous dereference #2674

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

lucaderi
Copy link
Member

Fixes https://github.com/ntop/nDPI/security/code-scanning/14

To fix the problem, we need to remove the redundant null check for l on line 462. This will clean up the code and avoid unnecessary checks. The functionality of the code will remain unchanged because the null check does not affect the program's behavior due to the prior dereferences.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…dereference

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@lucaderi lucaderi marked this pull request as ready for review January 13, 2025 19:11
@lucaderi lucaderi merged commit 9ab2b31 into dev Jan 13, 2025
37 checks passed
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.

1 participant