]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
detached children can run forever... mostly
authorAlan T. DeKok <aland@freeradius.org>
Tue, 30 Jan 2018 20:07:15 +0000 (15:07 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 31 Jan 2018 11:37:07 +0000 (06:37 -0500)
src/main/unlang_op.c

index 24467150e77830f1f049644e2a29526b50e36867..677161a969a88b2527dd81ec5269320bd14b9d5a 100644 (file)
@@ -500,9 +500,9 @@ static REQUEST *unlang_child_alloc(REQUEST *request, unlang_t *instruction, rlm_
        child->async = talloc_zero(child, fr_async_t);
 
 #define COPY_FIELD(_x) child->async->_x = request->async->_x
-       COPY_FIELD(original_recv_time);
-       COPY_FIELD(recv_time);
        COPY_FIELD(listen);
+       COPY_FIELD(recv_time);
+       child->async->original_recv_time = child->async->recv_time;
 
        /*
         *      Always set the "process" function to the local