blob: 796c62319257310231e1a46f16e3b3e763e09467 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
From a1633b5a54456b2b152abef24db19ae3587c8dae Mon Sep 17 00:00:00 2001
From: 7ym0n <bb.qnyd@gmail.com>
Date: Fri, 27 Sep 2019 04:31:27 -0400
Subject: [PATCH 1/2] fixed start task failed
---
src/manage_sql.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/manage_sql.c b/src/manage_sql.c
index 1fc9582bb..c03e800b4 100644
--- a/src/manage_sql.c
+++ b/src/manage_sql.c
@@ -38041,7 +38041,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"
diff --git a/src/manage_sql.c b/src/manage_sql.c
index 99ee86f..3ce495c 100644
--- a/src/manage_sql.c
+++ b/src/manage_sql.c
@@ -28550,7 +28550,7 @@ report_port_count (report_t report)
{
return sql_int ("SELECT count (DISTINCT port) FROM results"
" WHERE report = %llu AND port != ''"
- " AND port NOT %s 'general/%';",
+ " AND port NOT %s 'general/%%';",
report,
sql_ilike_op ());
}
|