From: Alan T. DeKok Date: Tue, 29 Jul 2025 09:00:23 +0000 (-0400) Subject: don't call shutdown recursively X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b91e21fda2b959e7c0b20fd1412347791cd0b2c5;p=thirdparty%2Ffreeradius-server.git don't call shutdown recursively --- diff --git a/src/lib/bio/base.c b/src/lib/bio/base.c index 5e7a6033e28..6898de53fc3 100644 --- a/src/lib/bio/base.c +++ b/src/lib/bio/base.c @@ -161,6 +161,12 @@ int fr_bio_shutdown(fr_bio_t *bio) } first = this; + /* + * We're in the process of shutting down, don't call ourselves recursively. + */ + my = (fr_bio_common_t *) this; + if (my->bio.read == fr_bio_shutdown_read) return 0; + /* * Walk back down the chain, calling the shutdown functions. */