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

Minor init_otp_pref_iterator cleanups #748

Merged
merged 3 commits into from
Sep 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/manage_sql_configs.c
Original file line number Diff line number Diff line change
Expand Up @@ -3429,7 +3429,7 @@ DEF_ACCESS (preference_iterator_hr_name, 4);
*
* @param[in] iterator Iterator.
* @param[in] config Config containing preferences.
* @param[in] section Preference section, NULL for general preferences.
* @param[in] section Preference section.
*/
void
init_otp_pref_iterator (iterator_t* iterator,
Expand All @@ -3451,7 +3451,7 @@ init_otp_pref_iterator (iterator_t* iterator,
" WHERE config_preferences.config = %llu"
" AND config_preferences.type = '%s'"
" AND (config_preferences.name = nvt_preferences.name"
" OR config_preferences.name LIKE 'timeout.%')"
" OR config_preferences.name LIKE 'timeout.%%')"
" AND config_preferences.name != 'max_checks'"
" AND config_preferences.name != 'max_hosts'"
" UNION"
Expand Down