]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dns: fix last timestamp handling
authorDerek <derekmkingsbury@gmail.com>
Thu, 7 Sep 2017 03:23:25 +0000 (20:23 -0700)
committerVictor Julien <victor@inliniac.net>
Wed, 20 Sep 2017 07:00:00 +0000 (09:00 +0200)
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

index 785ef5415087f8f3d30db13aac59f0df519c3a34..7098b540af36df3b38a5cd673fdeaee6f69109fe 100644 (file)
@@ -628,7 +628,7 @@ next_record:
     }
 
     if (f != NULL) {
-        dns_state->last_req = f->lastts;
+        dns_state->last_resp = f->lastts;
     }
 
     SCReturnInt(1);