summaryrefslogtreecommitdiffhomepage
path: root/fuzzing/nxt_http_controller_fuzz.c
diff options
context:
space:
mode:
Diffstat (limited to 'fuzzing/nxt_http_controller_fuzz.c')
-rw-r--r--fuzzing/nxt_http_controller_fuzz.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fuzzing/nxt_http_controller_fuzz.c b/fuzzing/nxt_http_controller_fuzz.c
index b7c6c272..eac54d7b 100644
--- a/fuzzing/nxt_http_controller_fuzz.c
+++ b/fuzzing/nxt_http_controller_fuzz.c
@@ -76,6 +76,14 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
goto failed;
}
+ r_controller->conn = nxt_mp_zget(mp, sizeof(nxt_conn_t));
+ if (r_controller->conn == NULL) {
+ goto failed;
+ }
+
+ nxt_main_log.level = NXT_LOG_ALERT;
+ r_controller->conn->log = nxt_main_log;
+
nxt_http_fields_process(rp.fields, &nxt_controller_fields_hash,
r_controller);