]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
comment out unused code
authorAlan T. DeKok <aland@freeradius.org>
Tue, 2 Apr 2024 16:36:57 +0000 (12:36 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 2 Apr 2024 18:47:08 +0000 (14:47 -0400)
src/listen/radius/proto_radius_tcp.c

index bb82f46190db17125d9407a6b5165192421eaf45..c343604f59bcae092a965b3d02cb7a7090c34a59 100644 (file)
@@ -281,6 +281,16 @@ static ssize_t mod_write(fr_listen_t *li, void *packet_ctx, UNUSED fr_time_t req
         */
        if (data_size <= 0) return data_size;
 
+#if 0
+       /*
+        *      If we're not tracking duplicates, then track->packet is NULL.
+        *
+        *      There's no reason to fix this now, as all of this will
+        *      be rewritten when the bio stuff works.  Since this
+        *      code doesn't do anything anyways, it's best to just
+        *      comment it out.
+        */
+
        /*
         *      Root through the reply to determine any
         *      connection-level negotiation data, but only the first
@@ -289,6 +299,7 @@ static ssize_t mod_write(fr_listen_t *li, void *packet_ctx, UNUSED fr_time_t req
        if ((written == 0) && (track->packet[0] == FR_RADIUS_CODE_STATUS_SERVER)) {
 //             status_check_reply(inst, buffer, buffer_len);
        }
+#endif
 
        /*
         *      Add in previously written data to the response.