]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Maybe the logging bio is stuck in an infinite loop?
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 27 Jan 2022 14:07:37 +0000 (08:07 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 27 Jan 2022 14:08:00 +0000 (08:08 -0600)
Given we can only reproduce this issue in CI, this is the only way to check...

src/lib/tls/log.c

index e25d765eeec5d28d4d98a8e916a4c0f9732dbf3b..5fad05ec6b43fc1e2981a9a90de40797c916ab26 100644 (file)
@@ -555,6 +555,7 @@ static int tls_log_request_bio_write_cb(BIO *bio, char const *in, int len)
        request_t               *request = talloc_get_type_abort(lb->request, request_t);
        log_request_func_t      func;
        char                    *le;
+       unsigned int            log_iter = 0;
 
        /*
         *      Pick the right logging function based on the type
@@ -593,6 +594,8 @@ static int tls_log_request_bio_write_cb(BIO *bio, char const *in, int len)
                }
 
                fr_sbuff_set(&lb->logged_m, le + 1);
+
+               printf("TLS BIO log_iter %u\n", log_iter++);
        }
 
        /*