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

NULL check needs to be moved before using strchr #4115

Merged
merged 1 commit into from Jun 16, 2021

Conversation

alejandro-perez
Copy link
Contributor

The new block checking ecdh_curve values was introduced before the existing check on whether ecdh_curve was NULL.
Having ecdh_curve NULL is at least possible from trustrouter.c, where a new fr_tls_server_conf_t struct is created and initialised to 0.
This resulted in SIGSEGVs when using the trustrouter module.

The new block checking `ecdh_curve` values was introduced before the existing check on whether `ecdh_curve` was NULL.
Having `ecdh_curve` NULL is at least possible from trustrouter.c, where a new `fr_tls_server_conf_t` struct is created and initialised to 0.
This resulted in SIGSEGVs when using the trustrouter module.
@arr2036 arr2036 merged commit bccb0c9 into FreeRADIUS:v3.0.x Jun 16, 2021
@alejandro-perez alejandro-perez deleted the patch-2 branch June 17, 2021 10:43
fdurand pushed a commit to fdurand/freeradius-server that referenced this pull request Mar 25, 2022
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.

None yet

2 participants