From: Derek Date: Thu, 7 Sep 2017 03:23:25 +0000 (-0700) Subject: dns: fix last timestamp handling X-Git-Tag: suricata-4.0.1~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9a7a6d3e503b97d8f8e08aadf90c39bd32965c7;p=thirdparty%2Fsuricata.git 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. --- 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);