]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
set the backlog from the parent who has it
authorAlan T. DeKok <aland@freeradius.org>
Thu, 19 Oct 2017 18:16:52 +0000 (14:16 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 19 Oct 2017 18:16:52 +0000 (14:16 -0400)
src/main/request.c

index d9b6b59b4344bef9a58e94d938366ecd78e73ff3..64985a64d1b2a96da6d4018b590514122fafc1cd 100644 (file)
@@ -280,7 +280,14 @@ int request_detach(REQUEST *fake)
        }
 
        fake->parent = NULL;
+
+       while (!request->backlog) {
+               rad_assert(request->parent != NULL);
+               request = request->parent;
+       }
+
        fake->backlog = request->backlog;
+
        return 0;
 }