]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
If there's no children, we can just mark the request as done
authorAlan T. DeKok <aland@freeradius.org>
Wed, 11 Dec 2013 16:29:34 +0000 (11:29 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 11 Dec 2013 16:29:53 +0000 (11:29 -0500)
src/main/process.c

index 12ae75c5feafb5ce6b2f7c7b47482c621b099be4..b0b8e2374fc42b22b8cb63c1cad57901f91057fa 100644 (file)
@@ -552,15 +552,16 @@ STATE_MACHINE_DECL(request_done)
        }
 #endif
 
-       if (request->child_state != REQUEST_DONE) {
-
 #ifdef HAVE_PTHREAD_H
-               if (!spawn_flag)
+       /*
+        *      If there's no children, we can mark the request as done.
+        */
+       if (!spawn_flag) {
+               request->child_state = REQUEST_DONE;
+       }
 #endif
-               {
-                       rad_panic("Request should have been marked done");
-               }
 
+       if (request->child_state != REQUEST_DONE) {
                gettimeofday(&now, NULL);
 #ifdef WITH_PROXY
        wait_some_more: