]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix asserts
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 6 Apr 2021 10:07:07 +0000 (11:07 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 6 Apr 2021 10:07:07 +0000 (11:07 +0100)
src/lib/io/worker.c

index 24f3c76ee60abcdfe5290ac67faa11474ba4d5a6..5ddfde7cdc60a9b22a81403cc6b6ee7ecfcf89e6 100644 (file)
@@ -969,9 +969,9 @@ static void _worker_request_done_external(request_t *request, UNUSED rlm_rcode_t
         *      @todo - check that the stack is at frame 0, otherwise
         *      more things have gone wrong.
         */
-       fr_assert_msg(request->parent || (request->log.unlang_indent == 0),
+       fr_assert_msg(request_is_internal(request) || request_is_detached(request) || (request->log.unlang_indent == 0),
                      "Request %s bad log indentation - expected 0 got %u", request->name, request->log.unlang_indent);
-       fr_assert_msg(!unlang_interpret_is_resumable(request),
+       fr_assert_msg((request->master_state == REQUEST_STOP_PROCESSING) || !unlang_interpret_is_resumable(request),
                      "Request %s is marked as yielded at end of processing", request->name);
 
        RDEBUG("Done request");