]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add warning for WITH_VERIFY_PTR
authorAlan T. DeKok <aland@freeradius.org>
Thu, 21 May 2026 14:14:26 +0000 (09:14 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 21 May 2026 14:14:26 +0000 (09:14 -0500)
so that people know that it kills performance if used in production
networks

src/main/version.c

index 172f5d7c8b744883fc7ef4ad7ac13687ee3e47b6..1bdb562349df68cb3d996dcf40e8534afd1bc06c 100644 (file)
@@ -637,8 +637,24 @@ void version_print(void)
 #endif
                DEBUG2("  ");
        }
+
+#ifdef WITH_VERIFY_PTR
+       WARN(" ");
+       WARN("#######################################################################");
+       WARN("# ");
+       WARN("# The server was built with the 'WITH_VERIFY_PTR' flag set.  This is a");
+       WARN("# developer-only build option that DRASTICALLY slows down the server.");
+       WARN("# If you are using the server in a production environment, you will see");
+       WARN("# significantly improved performance (3x-4x) by re-running 'configure'");
+       WARN("# with the flag '--disable-developer', and then re-building and");
+       WARN("# re-installing the server.");
+       WARN("# ");
+       WARN("#######################################################################");
+       WARN(" ");
+#endif
+
        INFO("FreeRADIUS Version " RADIUSD_VERSION_STRING);
-       INFO("Copyright (C) 1999-2025 The FreeRADIUS server project and contributors");
+       INFO("Copyright (C) 1999-2026 The FreeRADIUS server project and contributors");
        INFO("There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A");
        INFO("PARTICULAR PURPOSE");
        INFO("You may redistribute copies of FreeRADIUS under the terms of the");