]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
channel recv_time cannot be NULL. CID #1419871
authorAlan T. DeKok <aland@freeradius.org>
Thu, 19 Oct 2017 19:33:43 +0000 (15:33 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 19 Oct 2017 19:33:43 +0000 (15:33 -0400)
src/lib/io/worker.c

index 78575146889b829c3016551fa1ec04214ce7900c..8ac423b67a9260b0332261b7c568fda7a3e8e260 100644 (file)
@@ -825,6 +825,7 @@ static REQUEST *fr_worker_get_request(fr_worker_t *worker, fr_time_t now)
         *      processing this message.
         */
        request->async->channel = cd->channel.ch;
+
        request->async->original_recv_time = cd->request.recv_time;
        request->async->recv_time = *request->async->original_recv_time;
        request->async->el = worker->el;
@@ -866,11 +867,6 @@ nak:
                return NULL;
        }
 
-       /*
-        *      Hoist run-time checks here.
-        */
-       if (!cd->request.recv_time) request->async->original_recv_time = &request->async->recv_time;
-
        /*
         *      We're done with this message.
         */