]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
4 months agomove thread setup to common function
Alan T. DeKok [Sun, 15 Mar 2026 15:16:50 +0000 (11:16 -0400)] 
move thread setup to common function

4 months agomove thread instantiation to common function
Alan T. DeKok [Sun, 15 Mar 2026 15:13:03 +0000 (11:13 -0400)] 
move thread instantiation to common function

4 months agosimplify the names
Alan T. DeKok [Thu, 12 Mar 2026 17:28:55 +0000 (13:28 -0400)] 
simplify the names

less shouting is good.

4 months agoInitial baseline multi-server tests for load-generator -> 5 homeserver and load-gener...
Marc-Andre Casavant [Mon, 23 Feb 2026 19:00:48 +0000 (14:00 -0500)] 
Initial baseline multi-server tests for load-generator -> 5 homeserver and load-generator -> 1 proxy -> 2 homeserver scenarios.

4 months agotweaks, and use fr_dlist_foreach() in more places
Alan T. DeKok [Sun, 15 Mar 2026 13:15:00 +0000 (09:15 -0400)] 
tweaks, and use fr_dlist_foreach() in more places

4 months agowrap multi-line macro in do/while
Alan T. DeKok [Sun, 15 Mar 2026 13:01:54 +0000 (09:01 -0400)] 
wrap multi-line macro in do/while

4 months agofree dbuff on encode failure
Alan T. DeKok [Sun, 15 Mar 2026 12:59:12 +0000 (08:59 -0400)] 
free dbuff on encode failure

4 months agominimize includes
Alan T. DeKok [Sun, 15 Mar 2026 12:58:28 +0000 (08:58 -0400)] 
minimize includes

4 months agoPacify Coverity (CID #1686327)
Nick Porter [Sun, 15 Mar 2026 12:31:10 +0000 (12:31 +0000)] 
Pacify Coverity (CID #1686327)

4 months agoCheck return (CID #1686328)
Nick Porter [Sun, 15 Mar 2026 12:28:42 +0000 (12:28 +0000)] 
Check return (CID #1686328)

4 months agoCheck return (CID #1686329)
Nick Porter [Sun, 15 Mar 2026 12:28:16 +0000 (12:28 +0000)] 
Check return (CID #1686329)

4 months agoda can't be NULL here
Alan T. DeKok [Sun, 15 Mar 2026 02:42:17 +0000 (22:42 -0400)] 
da can't be NULL here

4 months agoreturn failure on error
Alan T. DeKok [Sun, 15 Mar 2026 02:40:56 +0000 (22:40 -0400)] 
return failure on error

4 months agocheck the return code of adding the compile list
Alan T. DeKok [Sun, 15 Mar 2026 02:40:16 +0000 (22:40 -0400)] 
check the return code of adding the compile list

4 months agotypo
Alan T. DeKok [Sun, 15 Mar 2026 02:39:45 +0000 (22:39 -0400)] 
typo

4 months agounify code which warns about unused processing sections
Alan T. DeKok [Sun, 15 Mar 2026 02:38:30 +0000 (22:38 -0400)] 
unify code which warns about unused processing sections

4 months agospelling mistakes
Alan T. DeKok [Sun, 15 Mar 2026 02:27:44 +0000 (22:27 -0400)] 
spelling mistakes

4 months agofix error message typo
Catalina Pineros [Fri, 13 Mar 2026 20:23:47 +0000 (16:23 -0400)] 
fix error message typo

4 months agocheck return value
Catalina Pineros [Fri, 13 Mar 2026 20:13:55 +0000 (16:13 -0400)] 
check return value

if pthread_mutex_init does not succeed,
then trigger_mutex is not intialized,
so return -1

4 months agotypo in comment
Catalina Pineros [Fri, 13 Mar 2026 18:53:15 +0000 (14:53 -0400)] 
typo in comment

4 months agofix typo in comment
Catalina Pineros [Fri, 13 Mar 2026 18:46:31 +0000 (14:46 -0400)] 
fix typo in comment

4 months agofix insert/remove from free_request with preprocessor macro
Catalina Pineros [Fri, 13 Mar 2026 17:43:28 +0000 (13:43 -0400)] 
fix insert/remove from free_request with preprocessor macro

instead of using dlist functions and manually tracking head/tail,
use wrapper functions named for the list being updated, with
clearer and more descriptive names.

4 months agofix comment and debug message typos
Catalina Pineros [Fri, 13 Mar 2026 16:24:04 +0000 (12:24 -0400)] 
fix comment and debug message typos

4 months agofail connection with proper variable values, send error message
Catalina Pineros [Fri, 13 Mar 2026 16:01:49 +0000 (12:01 -0400)] 
fail connection with proper variable values, send error message

set state.last_failed to now,
decrement state.pending to avoid misleading "already at max" error message,
give information in error message when mem alloc fails for a new connection.

4 months agofix memory leak
Catalina Pineros [Thu, 12 Mar 2026 17:19:00 +0000 (13:19 -0400)] 
fix memory leak

close(fd) before returning

4 months agoparser functions return ssize_t
Alan T. DeKok [Fri, 13 Mar 2026 14:18:53 +0000 (10:18 -0400)] 
parser functions return ssize_t

4 months agono need to do head && then remove. Just do pop_head()
Alan T. DeKok [Fri, 13 Mar 2026 12:00:57 +0000 (08:00 -0400)] 
no need to do head && then remove.  Just do pop_head()

4 months agoinsert new trunc requests at head
Catalina Pineros [Thu, 12 Mar 2026 19:44:09 +0000 (15:44 -0400)] 
insert new trunc requests at head
because we free from the tail

4 months agofix typo in comments
Catalina Pineros [Thu, 12 Mar 2026 19:11:02 +0000 (15:11 -0400)] 
fix typo in comments

4 months agofix typo in comments
Catalina Pineros [Thu, 12 Mar 2026 19:01:08 +0000 (15:01 -0400)] 
fix typo in comments

to to, in in, is is

4 months agofix typo in comments
Catalina Pineros [Thu, 12 Mar 2026 18:44:20 +0000 (14:44 -0400)] 
fix typo in comments

the the

4 months agofix typo in comments
Catalina Pineros [Thu, 12 Mar 2026 18:33:04 +0000 (14:33 -0400)] 
fix typo in comments

is is

4 months agofix comment
Catalina Pineros [Thu, 12 Mar 2026 18:07:40 +0000 (14:07 -0400)] 
fix comment

4 months agofix whitespace stripping that never executes
Catalina Pineros [Thu, 12 Mar 2026 17:42:48 +0000 (13:42 -0400)] 
fix whitespace stripping that never executes

buff[2][slen] is set to '/0', which is not a whitespace character, so we need to check buff[2][slen - 1] to actually remove trailing whitespace

4 months agofix error message typo
Catalina Pineros [Thu, 12 Mar 2026 17:30:10 +0000 (13:30 -0400)] 
fix error message typo

4 months agocorrect error path when failing to open file
Alan T. DeKok [Fri, 13 Mar 2026 11:51:13 +0000 (07:51 -0400)] 
correct error path when failing to open file

4 months agoremove extra semicolon
Alan T. DeKok [Fri, 13 Mar 2026 11:50:46 +0000 (07:50 -0400)] 
remove extra semicolon

4 months agoinitialize var
Catalina Pineros [Wed, 11 Mar 2026 14:26:49 +0000 (10:26 -0400)] 
initialize var

4 months agowe can enter closed from shutdown && timeout, too
Alan T. DeKok [Fri, 13 Mar 2026 11:43:16 +0000 (07:43 -0400)] 
we can enter closed from shutdown && timeout, too

_connection_free() and connection_signal_shutdown() both enter
the closed state from the timout state.

4 months agoClean up on failure
Nick Porter [Fri, 13 Mar 2026 09:43:25 +0000 (09:43 +0000)] 
Clean up on failure

4 months agoClarify comment
Nick Porter [Thu, 26 Feb 2026 17:40:19 +0000 (17:40 +0000)] 
Clarify comment

Control planes can be multi-producer, single consumer - so mulitple
threads can send / push a message.

4 months agoAdd coordinator startup / shutdown into scheduler
Nick Porter [Wed, 18 Feb 2026 10:01:10 +0000 (10:01 +0000)] 
Add coordinator startup / shutdown into scheduler

4 months agoAdd coord_attach callback to modules
Nick Porter [Wed, 18 Feb 2026 09:57:26 +0000 (09:57 +0000)] 
Add coord_attach callback to modules

4 months agoAdd support for pair list worker <-> coordinator data
Nick Porter [Wed, 18 Feb 2026 09:31:18 +0000 (09:31 +0000)] 
Add support for pair list worker <-> coordinator data

On the coordinator side the pair list is then converted to a request and run through an interpreter.

4 months agoAdd API for coordniator callback instances
Nick Porter [Tue, 3 Mar 2026 11:39:01 +0000 (11:39 +0000)] 
Add API for coordniator callback instances

Allows callbacks to register an instance create function to create instance data and a set of callbacks to run as part of the event loop.

4 months agoAdd coordinator frame work for sending data messages worker <-> coordinator
Nick Porter [Wed, 18 Feb 2026 09:02:28 +0000 (09:02 +0000)] 
Add coordinator frame work for sending data messages worker <-> coordinator

4 months agoAdd fr_control_wait() to wait for a control message
Nick Porter [Tue, 18 Nov 2025 10:37:11 +0000 (10:37 +0000)] 
Add fr_control_wait() to wait for a control message

4 months agoUse a semaphore to ensure master thread has started before workers
Nick Porter [Thu, 19 Feb 2026 19:40:57 +0000 (19:40 +0000)] 
Use a semaphore to ensure master thread has started before workers

4 months agoUse mmapped memory for POSIX semaphores
Nick Porter [Tue, 18 Nov 2025 08:57:09 +0000 (08:57 +0000)] 
Use mmapped memory for POSIX semaphores

In preparation for using separate processes in place of threads

4 months agoDynamically allocate the number of control plane callbacks
Nick Porter [Fri, 24 Oct 2025 14:07:51 +0000 (15:07 +0100)] 
Dynamically allocate the number of control plane callbacks

To allow the control plane to be used for an arbitrary number of message
IDs

4 months agoMove control message IDs into headers relating to their use
Nick Porter [Fri, 24 Oct 2025 13:10:05 +0000 (14:10 +0100)] 
Move control message IDs into headers relating to their use

4 months agoprint out packet type and ID too
Alan T. DeKok [Thu, 12 Mar 2026 22:28:28 +0000 (18:28 -0400)] 
print out packet type and ID too

4 months agoclean up printing for regexes
Alan T. DeKok [Thu, 12 Mar 2026 18:57:26 +0000 (14:57 -0400)] 
clean up printing for regexes

4 months agoprint out strerror, too
Alan T. DeKok [Thu, 12 Mar 2026 18:15:10 +0000 (14:15 -0400)] 
print out strerror, too

4 months agoflush the output, just in case
Alan T. DeKok [Thu, 12 Mar 2026 17:55:01 +0000 (13:55 -0400)] 
flush the output, just in case

4 months agorun scripts/build/min-includes.pl
Alan T. DeKok [Thu, 12 Mar 2026 11:47:38 +0000 (07:47 -0400)] 
run scripts/build/min-includes.pl

to minimize the number of duplicate includes

4 months agoremove duplicate headers
Alan T. DeKok [Thu, 12 Mar 2026 11:43:08 +0000 (07:43 -0400)] 
remove duplicate headers

perl -ni -e 'print unless (/<(stdbool|stdint|stddef|string).h>/)' $(git grep -l stdbool.h src | grep '\.[ch]' | egrep -v 'build|autoconf' )

4 months agoInclude stdbool.h in default headers
Nick Porter [Thu, 12 Mar 2026 10:14:19 +0000 (10:14 +0000)] 
Include stdbool.h in default headers

4 months agoReturn on negative value (CID #1684172)
Nick Porter [Thu, 12 Mar 2026 09:40:51 +0000 (09:40 +0000)] 
Return on negative value (CID #1684172)

4 months agoonly call marker() functions once.
Alan T. DeKok [Wed, 11 Mar 2026 22:25:17 +0000 (18:25 -0400)] 
only call marker() functions once.

one the second pass, call set()

4 months agochanged error message
Catalina Pineros [Wed, 11 Mar 2026 20:09:17 +0000 (16:09 -0400)] 
changed error message
replaced hardcoded value with the more useful library->autoinit->name

4 months agofix error message typo
Catalina Pineros [Wed, 11 Mar 2026 19:57:55 +0000 (15:57 -0400)] 
fix error message typo

4 months agofix debug message typo
Catalina Pineros [Wed, 11 Mar 2026 19:06:50 +0000 (15:06 -0400)] 
fix debug message typo

4 months agofix warning message typo
Catalina Pineros [Wed, 11 Mar 2026 17:53:51 +0000 (13:53 -0400)] 
fix warning message typo

4 months agofix warning message format specifiers
Catalina Pineros [Wed, 11 Mar 2026 17:41:46 +0000 (13:41 -0400)] 
fix warning message format specifiers
%d is for signed ints. index is uint_32 so it should use %u, which is for unsigned ints.

4 months agofix error message typo
Catalina Pineros [Wed, 11 Mar 2026 16:05:01 +0000 (12:05 -0400)] 
fix error message typo

4 months agoinitialize var
Catalina Pineros [Wed, 11 Mar 2026 15:33:25 +0000 (11:33 -0400)] 
initialize var

4 months agomove function needing sbuff out of talloc.c
Alan T. DeKok [Wed, 11 Mar 2026 21:32:28 +0000 (17:32 -0400)] 
move function needing sbuff out of talloc.c

because otherwise we have circular includes of talloc to sbuff
to talloc, and things don't always work as well as they should.

4 months agominimize the number of includes for a core header file
Alan T. DeKok [Wed, 11 Mar 2026 21:11:47 +0000 (17:11 -0400)] 
minimize the number of includes for a core header file

4 months agofix uses of fr_sbuff_marker() vs fr_sbuff_set()
Alan T. DeKok [Wed, 11 Mar 2026 20:27:30 +0000 (16:27 -0400)] 
fix uses of fr_sbuff_marker() vs fr_sbuff_set()

fr_sbuff_marker() is run once, and only once.  after that,
fr_sbuff_set() is used to update the marker

4 months agoinitialize "other" to quiet the static analyzer
Alan T. DeKok [Wed, 11 Mar 2026 20:06:06 +0000 (16:06 -0400)] 
initialize "other" to quiet the static analyzer

4 months agocatch corner cases in parsing files
Alan T. DeKok [Wed, 11 Mar 2026 19:18:28 +0000 (15:18 -0400)] 
catch corner cases in parsing files

4 months agouse intermediate variables while talking the tree
Alan T. DeKok [Wed, 11 Mar 2026 19:13:46 +0000 (15:13 -0400)] 
use intermediate variables while talking the tree

instead of using the input variables, which then get
over-written

4 months agobad shared secrets are warnings, not errors
Alan T. DeKok [Wed, 11 Mar 2026 19:08:07 +0000 (15:08 -0400)] 
bad shared secrets are warnings, not errors

4 months agofree entry on error reading file
Alan T. DeKok [Wed, 11 Mar 2026 19:07:19 +0000 (15:07 -0400)] 
free entry on error reading file

4 months agofix error message missing parameter
Catalina Pineros [Tue, 10 Mar 2026 18:15:44 +0000 (14:15 -0400)] 
fix error message missing parameter
(found by claude code)

4 months agoerror in DEBUG message
Catalina Pineros [Tue, 10 Mar 2026 17:57:31 +0000 (13:57 -0400)] 
error in DEBUG message
(found by claude code)

4 months agomax_attr not incremented after partial failure
Catalina Pineros [Tue, 10 Mar 2026 17:22:41 +0000 (13:22 -0400)] 
max_attr not incremented after partial failure
(found by claude code)

4 months agoerror in DEBUG message formatting
Catalina Pineros [Tue, 10 Mar 2026 17:09:49 +0000 (13:09 -0400)] 
error in DEBUG message formatting
(found by claude code)

4 months agocompare pointer to NULL instead of int 0
Catalina Pineros [Tue, 10 Mar 2026 16:12:36 +0000 (12:12 -0400)] 
compare pointer to NULL instead of int 0

comparing a pointer to the integer literal 0 is technically valid C (implicit conversion to null pointer) but is non-idiomatic and can confuse static analyzers. should be != NULL.
(found by claude code)

4 months agooverflow check correction, typo in error message
Catalina Pineros [Tue, 10 Mar 2026 13:56:24 +0000 (09:56 -0400)] 
overflow check correction, typo in error message

when parsing string (   static int read_string(rlm_isc_dhcp_tokenizer_t *state)   )
if string is of size 255,
then '/0' is added at position 256, which is an overflow error
so ((size_t) (q - state->string) >= sizeof(state->string) -1 )  necessary to preserve space for the null terminator,

copy-paste mistake.

(found by claude code)

4 months agoprint secrets at debug3, even if the configs say to suppress
Alan T. DeKok [Tue, 10 Mar 2026 17:36:43 +0000 (13:36 -0400)] 
print secrets at debug3, even if the configs say to suppress

4 months agoremove SecurID module.
Alan T. DeKok [Tue, 10 Mar 2026 17:30:46 +0000 (13:30 -0400)] 
remove SecurID module.

the modern way to check SecurID tokens is via their REST API.

4 months agodocs-v4: Update/rewrite content for v4 prepaid tutorial (replaces PR 5472)
nolade [Thu, 5 Mar 2026 21:53:21 +0000 (16:53 -0500)] 
docs-v4: Update/rewrite content for v4 prepaid tutorial (replaces PR 5472)

4 months agodocs-v4: update/rewrite content for proxy tutorials (v4) . Replaces PR 5739.
nolade [Thu, 5 Mar 2026 20:27:03 +0000 (15:27 -0500)] 
docs-v4: update/rewrite content for proxy tutorials (v4) . Replaces PR 5739.

4 months agofix typo
Alan T. DeKok [Tue, 10 Mar 2026 15:07:40 +0000 (11:07 -0400)] 
fix typo

4 months agoreturn failure on error
Alan T. DeKok [Tue, 10 Mar 2026 15:05:52 +0000 (11:05 -0400)] 
return failure on error

4 months agoensure that prefix length is limited to 0..7
Alan T. DeKok [Tue, 10 Mar 2026 15:00:14 +0000 (11:00 -0400)] 
ensure that prefix length is limited to 0..7

4 months agoAdd Marconi TACACS+ dictionary
Nick Porter [Tue, 10 Mar 2026 15:49:56 +0000 (15:49 +0000)] 
Add Marconi TACACS+ dictionary

4 months agoAdd more Nokia attributes
Nick Porter [Tue, 10 Mar 2026 14:23:57 +0000 (14:23 +0000)] 
Add more Nokia attributes

From
https://infocenter.nokia.com/public/7750SR150R5A/index.jsp?topic=%2Fcom.sr.radius%2Fhtml%2Fsros_radius_attrib.html

4 months agoupdate checks for Server-Id
ethan-thompson [Wed, 25 Feb 2026 21:09:32 +0000 (16:09 -0500)] 
update checks for Server-Id

As per RFC 9915 the server MUST discard any Solicit, Confirm,
or Rebind messages that include a Server Identifier option.

Signed-off-by: ethan-thompson <ethan.thompson@networkradius.com>
4 months agoInformation-Request can contain Server-ID
ethan-thompson [Wed, 25 Feb 2026 21:23:08 +0000 (16:23 -0500)] 
Information-Request can contain Server-ID

But if so, it has to match.

RFC 9915 Section 16.12 says that the server MUST discard any
received Information-request messages IF the message includes
a Server Identifier option, AND the DUID in the option does not
match the server's DUID, OR the message includes an IA option.

So Server-ID is optional in this case, and should be validated
only if it's present.

Signed-off-by: ethan-thompson <ethan.thompson@networkradius.com>
4 months agoIf vp is not appended to tmp, it is not freed with tmp (as expected). Instead, explic...
ethan-thompson [Wed, 25 Feb 2026 21:45:56 +0000 (16:45 -0500)] 
If vp is not appended to tmp, it is not freed with tmp (as expected). Instead, explicitly free vp before going to fail.

Signed-off-by: ethan-thompson <ethan.thompson@networkradius.com>
4 months agoWe added support for dhcpv6 lease query and lease query reply. We need to not reject...
ethan-thompson [Wed, 4 Mar 2026 16:23:13 +0000 (16:23 +0000)] 
We added support for dhcpv6 lease query and lease query reply. We need to not reject them.

Signed-off-by: ethan-thompson <ethan.thompson@networkradius.com>
4 months agoValidate DHCPv6 reconfigure message option has a valid message type
ethan-thompson [Wed, 4 Mar 2026 16:51:51 +0000 (16:51 +0000)] 
Validate DHCPv6 reconfigure message option has a valid message type

Signed-off-by: ethan-thompson <ethan.thompson@networkradius.com>
4 months agoUpdate comment to use the correct number of hex digits for a 32-bit integer.
ethan-thompson [Wed, 4 Mar 2026 17:08:24 +0000 (17:08 +0000)] 
Update comment to use the correct number of hex digits for a 32-bit integer.

Signed-off-by: ethan-thompson <ethan.thompson@networkradius.com>
4 months agoonly append to the output list if the inputs are valid
Alan T. DeKok [Tue, 10 Mar 2026 11:51:07 +0000 (07:51 -0400)] 
only append to the output list if the inputs are valid

previously it was leaving decoded values in the list, and then
also appending the raw data.

4 months agoclean up more aggressively on error
Alan T. DeKok [Mon, 9 Mar 2026 21:57:31 +0000 (17:57 -0400)] 
clean up more aggressively on error

4 months agofix bounds checking, add corresponding unit tests
Catalina Pineros [Mon, 9 Mar 2026 20:40:27 +0000 (16:40 -0400)] 
fix bounds checking, add corresponding unit tests

blksize was missing minimum check,
if statement previously flags the 'end-of-file' packet as malformed,
unit tests added to check empty data block signals end-of-file, as well as invalid block size where minimum is 8

(protocols/tftp: fix empty DATA packet rejection and missing blksize minimum check 470)

4 months agofix syntax error
Catalina Pineros [Mon, 9 Mar 2026 20:14:20 +0000 (16:14 -0400)] 
fix syntax error
(fix(udpfromto.c): fix syntax error 'to = NULL:' -> 'to = NULL;' 177)