Skip to content

eBPF-based security platform

config: clear the value events_scan() returns with no record

Daniel Borkmann22502877e51f
diff --git a/util/config_update.c b/util/config_update.c
index f301d01f..fea813ef 100644
--- a/util/config_update.c
+++ b/util/config_update.c
@@ -404,6 +404,8 @@ static int events_scan(struct config_update *update,
FILE *file;
memset(last, 0, sizeof(*last));
+ if (value)
+ memset(value, 0, 32);
if (end)
*end = 0;
fd = openat(update->dir_fd, "events",