diff --git a/src/app-layer-dns-udp.c b/src/app-layer-dns-udp.c index bd3a694c41..6a9e1cf50d 100644 --- a/src/app-layer-dns-udp.c +++ b/src/app-layer-dns-udp.c @@ -375,7 +375,7 @@ void RegisterDNSUDPParsers(void) { return; } - if (AppLayerParserConfParserEnabled("tcp", proto_name)) { + if (AppLayerParserConfParserEnabled("udp", proto_name)) { AppLayerParserRegisterParser(IPPROTO_UDP, ALPROTO_DNS, STREAM_TOSERVER, DNSUDPRequestParse); AppLayerParserRegisterParser(IPPROTO_UDP, ALPROTO_DNS, STREAM_TOCLIENT,