diff options
Diffstat (limited to 'fuzz/fuzz_is_stun.c')
-rw-r--r-- | fuzz/fuzz_is_stun.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fuzz/fuzz_is_stun.c b/fuzz/fuzz_is_stun.c index 1b1eb2639..dc1c98f07 100644 --- a/fuzz/fuzz_is_stun.c +++ b/fuzz/fuzz_is_stun.c @@ -4,6 +4,7 @@ static struct ndpi_detection_module_struct *ndpi_struct = NULL; static struct ndpi_flow_struct ndpi_flow; +struct ndpi_iphdr iph; #ifdef STUN_TCP struct ndpi_tcphdr tcph; #else @@ -31,6 +32,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { #else packet->tcp = &tcph; #endif + packet->iph = &iph; /* IPv4 only */ is_stun(ndpi_struct, &ndpi_flow, &app_proto); return 0; |