summaryrefslogtreecommitdiffstats
path: root/tests-fuzz
diff options
context:
space:
mode:
authorDaniel Salzman <daniel.salzman@nic.cz>2021-01-27 13:11:51 +0100
committerDaniel Salzman <daniel.salzman@nic.cz>2021-01-27 13:11:51 +0100
commit698bc6a497b9826cddc1c029693280549245a9a3 (patch)
tree39b66eb9061cc6d3b6a637f31c93c4c863a18973 /tests-fuzz
parentsynthrecord: update link to RFC in the documentation (diff)
downloadknot-698bc6a497b9826cddc1c029693280549245a9a3.tar.xz
knot-698bc6a497b9826cddc1c029693280549245a9a3.zip
tests-fuzz: fix inconsistent server_reconfigure() API
Diffstat (limited to 'tests-fuzz')
-rw-r--r--tests-fuzz/knotd_wrap/knot_stdio.conf3
-rw-r--r--tests-fuzz/knotd_wrap/server.c6
2 files changed, 7 insertions, 2 deletions
diff --git a/tests-fuzz/knotd_wrap/knot_stdio.conf b/tests-fuzz/knotd_wrap/knot_stdio.conf
index b4aa084de..b5032a72e 100644
--- a/tests-fuzz/knotd_wrap/knot_stdio.conf
+++ b/tests-fuzz/knotd_wrap/knot_stdio.conf
@@ -8,6 +8,9 @@ log:
- target: stderr
any: info
+database:
+ storage: /tmp/knotd-fuzz/storage
+
template:
- id: default
storage: /tmp/knotd-fuzz/storage
diff --git a/tests-fuzz/knotd_wrap/server.c b/tests-fuzz/knotd_wrap/server.c
index 9a34ef734..fc37fbcb4 100644
--- a/tests-fuzz/knotd_wrap/server.c
+++ b/tests-fuzz/knotd_wrap/server.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2018 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/* Copyright (C) 2021 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -20,8 +20,10 @@
extern void udp_master_init_stdio(server_t *server);
-void server_reconfigure(conf_t *conf, server_t *server)
+int server_reconfigure(conf_t *conf, server_t *server)
{
orig_server_reconfigure(conf, server);
udp_master_init_stdio(server);
+
+ return KNOT_EOK;
}