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 segfault due to NULL save_config_nvt_omp response (master) #1045

Merged
merged 2 commits into from
Nov 7, 2018

Conversation

timopollmeier
Copy link
Member

This is the master branch version of #1044, which fixes a potential segfault when saving NVT preferences.

If the response string given to send_response is NULL, log a warning and
send an empty response with HTTP code 500.
Now a generic success message is returned if no errors occur to ensure
there is a valid response.
Previously the returned message could be NULL if it was not set by
check_modify_config because there are no preferences given or the last
preference was skipped (e.g. if it's a password where the "Replace
existing ..." box was not checked).
@bjoernricks bjoernricks merged commit dddb5ef into greenbone:master Nov 7, 2018
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.

2 participants