summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2022-02-22 13:47:22 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2022-02-22 13:47:22 +0000
commit509233fd7d5acf1c6972b755144778d6186e77af (patch)
treef54a71e98fa11ef204827e7b77289d5b461023f0 /regress
parent1e142e153a00aea8764d9868588f3b09f490e2bc (diff)
The fuzzer logs everything to syslog, this is not what we want.
Call log_init() and set debug but clear verbose afterwards with log_setverbose(0) still the fuzzer is very verbose. OK millert@ some time ago
Diffstat (limited to 'regress')
-rw-r--r--regress/sbin/iked/parser/test_parser_fuzz.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/regress/sbin/iked/parser/test_parser_fuzz.c b/regress/sbin/iked/parser/test_parser_fuzz.c
index 2f14dda55c8..edd602e25c7 100644
--- a/regress/sbin/iked/parser/test_parser_fuzz.c
+++ b/regress/sbin/iked/parser/test_parser_fuzz.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: test_parser_fuzz.c,v 1.5 2021/12/13 16:56:49 deraadt Exp $ */
+/* $OpenBSD: test_parser_fuzz.c,v 1.6 2022/02/22 13:47:21 claudio Exp $ */
/*
* Fuzz tests for payload parsing
*
@@ -12,6 +12,7 @@
#include <event.h>
#include <imsg.h>
#include <string.h>
+#include <syslog.h>
#include "iked.h"
#include "ikev2.h"
@@ -477,9 +478,8 @@ parser_fuzz_tests(void)
struct iked_message msg;
struct ibuf *data;
-#if 0
- log_init(3);
-#endif
+ log_init(1, LOG_DAEMON);
+ log_setverbose(0);
TEST_START("fuzz generic header");
ASSERT_PTR_NE(data = ibuf_new(cookies, sizeof(cookies)), NULL);