From d9a7a6d3e503b97d8f8e08aadf90c39bd32965c7 Mon Sep 17 00:00:00 2001 From: Derek Date: Wed, 6 Sep 2017 20:23:25 -0700 Subject: [PATCH] dns: fix last timestamp handling Fixes incorrect variable in ticket #2207 In app-layer-dns-tcp.c in the DNSTCPResponseParse function a variable is set to last_req when it should be last_resp. This makes it consistent with UDP DNS response parsing. --- 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 785ef54150..7098b540af 100644 --- a/src/app-layer-dns-tcp.c +++ b/src/app-layer-dns-tcp.c @@ -628,7 +628,7 @@ next_record: } if (f != NULL) { - dns_state->last_req = f->lastts; + dns_state->last_resp = f->lastts; } SCReturnInt(1); -- 2.47.2