]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
assert that the various heap IDs are marked as "free"
authorAlan T. DeKok <aland@freeradius.org>
Mon, 8 Mar 2021 15:27:31 +0000 (10:27 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 8 Mar 2021 15:28:57 +0000 (10:28 -0500)
src/lib/server/request.c

index c1a7ae44c5ce91326898d3af941f299a8988c007..c57d9f18bc6b242f807319c7ef0878783668e7e2 100644 (file)
@@ -290,6 +290,9 @@ static inline CC_HINT(always_inline) int request_init(char const *file, int line
  */
 static int _request_free(request_t *request)
 {
+       fr_assert(request->time_order_id <= 0);
+       fr_assert(request->runnable_id <= 0);
+
        /*
         *      Reinsert into the free list if it's not already
         *      in the free list.