]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dns: fix protocol yaml setting
authorVictor Julien <victor@inliniac.net>
Thu, 6 Feb 2014 17:30:33 +0000 (18:30 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 6 Feb 2014 17:30:33 +0000 (18:30 +0100)
UDP code would accidentally depend on 'tcp' setting.

src/app-layer-dns-udp.c

index bd3a694c4133a8ec54721232f6d3db00bf8df206..6a9e1cf50d3cd9e3cebb93dc4fc31d5147c46586 100644 (file)
@@ -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,