]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dns yaml: fix detect ports of tcp relying on udp
authorVictor Julien <victor@inliniac.net>
Thu, 13 Feb 2014 14:15:53 +0000 (15:15 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 13 Feb 2014 14:15:53 +0000 (15:15 +0100)
The probing parser detection ports yaml settings of the TCP part
of the DNS parser accidentally used udp as protocol string, causing
the wrong part of the YAML to be evaluated.

src/app-layer-dns-tcp.c

index aaf1ade2fa2522150dceb743c93533646993bbbe..52982bbbea0a10981719faae5b8ce252f3508877 100644 (file)
@@ -605,7 +605,7 @@ void RegisterDNSTCPParsers(void) {
                                           STREAM_TOSERVER,
                                           DNSTcpProbingParser);
         } else {
-            AppLayerProtoDetectPPParseConfPorts("udp", IPPROTO_TCP,
+            AppLayerProtoDetectPPParseConfPorts("tcp", IPPROTO_TCP,
                                                 proto_name, ALPROTO_DNS,
                                                 0, sizeof(DNSTcpHeader),
                                                 DNSTcpProbingParser);