summaryrefslogtreecommitdiff
path: root/testcode/testbound.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2024-05-10 20:48:53 +0000
committerCy Schubert <cy@FreeBSD.org>2024-05-10 20:48:53 +0000
commitc2a80056864d6eda0398fd127dc0ae515b39752b (patch)
tree92e6196ae61df0fa7e4db654f78dfd837cc41826 /testcode/testbound.c
parent5a33598e88ad8fbc0affa74dee0a2d8cc4010fbc (diff)
Diffstat (limited to 'testcode/testbound.c')
-rw-r--r--testcode/testbound.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testcode/testbound.c b/testcode/testbound.c
index ec627cc8deb1..f023860e086e 100644
--- a/testcode/testbound.c
+++ b/testcode/testbound.c
@@ -48,6 +48,7 @@
#include "testcode/fake_event.h"
#include "daemon/remote.h"
#include "libunbound/worker.h"
+#include "daemon/worker.h"
#include "util/config_file.h"
#include "sldns/keyraw.h"
#ifdef UB_ON_WINDOWS
@@ -532,9 +533,10 @@ void daemon_remote_clear(struct daemon_remote* ATTR_UNUSED(rc))
}
int daemon_remote_open_accept(struct daemon_remote* ATTR_UNUSED(rc),
- struct listen_port* ATTR_UNUSED(ports),
- struct worker* ATTR_UNUSED(worker))
+ struct listen_port* ATTR_UNUSED(ports), struct worker* worker)
{
+ struct replay_runtime* runtime = (struct replay_runtime*)worker->base;
+ runtime->daemon = worker->daemon;
return 1;
}