]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
message time is always "now"
authorAlan T. DeKok <aland@freeradius.org>
Fri, 25 Aug 2017 13:39:48 +0000 (09:39 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 25 Aug 2017 13:39:48 +0000 (09:39 -0400)
because duplicate packets MAY come from the past...

src/lib/io/network.c

index 5d045a1c6fbe8c4b70f10b1cbfa737f02c3b511f..92436d458cef2efc63fe45f5138cf396bf74e615 100644 (file)
@@ -392,13 +392,12 @@ next_message:
 
        /*
         *      Initialize the rest of the fields of the channel data.
+        *
+        *      We always use "now" as the time of the message, as the
+        *      packet MAY be a duplicate packet magically resurrected
+        *      from the past.
         */
-       if (recv_time) {
-               cd->m.when = *recv_time;
-       } else {
-               cd->m.when = fr_time();
-       }
-
+       cd->m.when = fr_time();
        cd->listen = s->listen;
        cd->request.recv_time = recv_time;