]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
No sock for detail listeners. Fixes #5485
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Thu, 23 Jan 2025 19:48:07 +0000 (19:48 +0000)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Thu, 23 Jan 2025 20:21:34 +0000 (20:21 +0000)
doc/ChangeLog
src/main/process.c

index 371afe376d3f425064ac9615c26aaa4cf3f96877..b0f5b8bb3962f77b48a0965f300f4513e1620291 100644 (file)
@@ -54,6 +54,7 @@ FreeRADIUS 3.2.7 Sat 24 Aug 2024 12:00:00 UTC urgency=low
          good thing is unknown.
        * Better handler single-character expansions.  Fixes #2216.
        * Correct calculation of EAP length in pre-proxy.  Fixes #5486.
+       * Don't segfault when using detail listeners. Fixes #5485
 
 FreeRADIUS 3.2.6 Sat 24 Aug 2024 12:00:00 UTC urgency=low
        Configuration changes
index c33b9c9520f0c6b5efb2a51cc8021838f8bb8b19..8e77b74f639d6a7ab5c75caa42fdab301aab696f 100644 (file)
@@ -5735,6 +5735,10 @@ static void event_new_fd(rad_listen_t *this)
                        this->status = RAD_LISTEN_STATUS_KNOWN;
 
 #ifdef WITH_TLS
+                       if (this->type == RAD_LISTEN_DETAIL) {
+                               return;
+                       }
+
                        sock = this->data;
                        if (!sock->write_handler) return;