From: Victor Julien Date: Thu, 6 Feb 2014 17:30:33 +0000 (+0100) Subject: dns: fix protocol yaml setting X-Git-Tag: suricata-2.0rc1~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1030cf58fa1783944bc8d5a0d0d4e0985c932c44;p=thirdparty%2Fsuricata.git dns: fix protocol yaml setting UDP code would accidentally depend on 'tcp' setting. --- 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,