diff --git a/src/app-layer-dns-udp.c b/src/app-layer-dns-udp.c index 6a2523454d..d8ee37d30f 100644 --- a/src/app-layer-dns-udp.c +++ b/src/app-layer-dns-udp.c @@ -314,7 +314,7 @@ static int DNSUDPResponseParse(Flow *f, void *dstate, tx->replied = 1; } - if (dns_state != NULL && f != NULL) { + if (f != NULL) { dns_state->last_resp = f->lastts; } SCReturnInt(1);