mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
DNS-fuzzer: raise new_connection event
The conn protocol scripts now assume that new_connection is run before connection_state_remove. Update the DNS analyzer to raise the new_connection event.
This commit is contained in:
parent
83d5243cf6
commit
5e74eefd88
1 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
|||
auto conn = add_connection();
|
||||
auto a = add_analyzer(conn);
|
||||
|
||||
// The conn protocol scripts assume that new_connection is run before connection_state_remove.
|
||||
if ( new_connection )
|
||||
conn->Event(new_connection, nullptr);
|
||||
|
||||
try {
|
||||
a->DeliverPacket(size, data, true, -1, nullptr, size);
|
||||
} catch ( const binpac::Exception& e ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue