]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Name the talloc pools
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 15 Jun 2015 22:11:46 +0000 (18:11 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 16 Jun 2015 00:31:21 +0000 (20:31 -0400)
src/lib/debug.c
src/main/listen.c
src/main/process.c
src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c

index 63afbfd00160c8a25f30d6e252ebf8c612c51a98..f7ce9fafe0a397f63d6e872fec6e28ced4a02975 100644 (file)
@@ -810,7 +810,8 @@ static void _fr_talloc_log(char const *msg)
  */
 int fr_log_talloc_report(TALLOC_CTX *ctx)
 {
-       #define TALLOC_REPORT_MAX_DEPTH 20
+#define TALLOC_REPORT_MAX_DEPTH 20
+
        FILE *log;
        int fd;
 
index 5815759ebc5f1cee4ca757b02f1b100eef7c544e..52db4219987ce75d0d590436ba2b59e5184af895 100644 (file)
@@ -1559,6 +1559,7 @@ static int auth_socket_recv(rad_listen_t *listener)
                FR_STATS_INC(auth, total_packets_dropped);
                return 0;
        }
+       talloc_set_name_const(ctx, "auth_listener_pool");
 
        /*
         *      Now that we've sanity checked everything, receive the
@@ -1675,6 +1676,7 @@ static int acct_socket_recv(rad_listen_t *listener)
                FR_STATS_INC(acct, total_packets_dropped);
                return 0;
        }
+       talloc_set_name_const(ctx, "acct_listener_pool");
 
        /*
         *      Now that we've sanity checked everything, receive the
@@ -1941,6 +1943,7 @@ static int coa_socket_recv(rad_listen_t *listener)
                FR_STATS_INC(coa, total_packets_dropped);
                return 0;
        }
+       talloc_set_name_const(ctx, "coa_socket_recv_pool");
 
        /*
         *      Now that we've sanity checked everything, receive the
index a310ff313dbfa6ccfef15ce78a8a4b2eda34db87..5619edf635122573900238d561659e9fe8d8dd77 100644 (file)
@@ -1664,6 +1664,7 @@ skip_dup:
        if (!ctx) {
                ctx = talloc_pool(NULL, main_config.talloc_pool_size);
                if (!ctx) return 0;
+               talloc_set_name_const(ctx, "request_receive_pool");
 
                /*
                 *      The packet is still allocated from a different
index 3597366c9fb6951c93389de9566e7a42258db56e..1dd0d01606de8cd69b5469e01c11592064d5ddf3 100644 (file)
@@ -987,7 +987,7 @@ int eapttls_process(eap_handler_t *handler, tls_session_t *tls_session)
        }
 
        /*
-        *      Allocate a fake REQUEST structe.
+        *      Allocate a fake REQUEST structure.
         */
        fake = request_alloc_fake(request);