summaryrefslogtreecommitdiff
path: root/src/libhydra/hydra.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libhydra/hydra.c')
-rw-r--r--src/libhydra/hydra.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libhydra/hydra.c b/src/libhydra/hydra.c
index f180e36bb..7d6256598 100644
--- a/src/libhydra/hydra.c
+++ b/src/libhydra/hydra.c
@@ -58,12 +58,13 @@ bool libhydra_init(const char *daemon)
INIT(this,
.public = {
.attributes = attribute_manager_create(),
- .kernel_interface = kernel_interface_create(),
.daemon = strdup(daemon ?: "libhydra"),
},
);
hydra = &this->public;
+ this->public.kernel_interface = kernel_interface_create();
+
if (lib->integrity &&
!lib->integrity->check(lib->integrity, "libhydra", libhydra_init))
{