From ec4288f7c2f7f73204b60d29b932dd5f2ef8b97b Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 13 Feb 2014 15:15:53 +0100 Subject: [PATCH] dns yaml: fix detect ports of tcp relying on udp 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app-layer-dns-tcp.c b/src/app-layer-dns-tcp.c index aaf1ade2fa..52982bbbea 100644 --- a/src/app-layer-dns-tcp.c +++ b/src/app-layer-dns-tcp.c @@ -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);