]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
6 weeks agospelling mistakes
Alan T. DeKok [Sun, 15 Mar 2026 02:27:44 +0000 (22:27 -0400)] 
spelling mistakes

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

6 weeks 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

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

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

6 weeks 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.

6 weeks 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

6 weeks 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.

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

close(fd) before returning

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

6 weeks 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()

6 weeks 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

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

6 weeks 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

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

the the

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

is is

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

6 weeks 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

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

6 weeks 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

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

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

6 weeks 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.

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

6 weeks 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.

6 weeks 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

6 weeks 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

6 weeks 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.

6 weeks 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.

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

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

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

6 weeks 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

6 weeks 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

6 weeks 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' )

6 weeks 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

6 weeks 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)

6 weeks 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()

6 weeks 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

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

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

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

6 weeks 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.

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

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

6 weeks 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.

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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

6 weeks 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)

6 weeks 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)

6 weeks 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)

6 weeks 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)

6 weeks 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)

6 weeks 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)

6 weeks 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

7 weeks 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.

7 weeks 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)

7 weeks 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.

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

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

7 weeks 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

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

7 weeks 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

7 weeks 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>
7 weeks 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>
7 weeks 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>
7 weeks 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>
7 weeks 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>
7 weeks 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>
7 weeks 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.

7 weeks 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

7 weeks 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)

7 weeks 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)

7 weeks agoadd 'goto error' after a REDEBUG() call
Catalina Pineros [Mon, 9 Mar 2026 16:06:37 +0000 (12:06 -0400)] 
add 'goto error' after a REDEBUG() call
when trying to encrypt a 3gpp pseudonym without the ID hint byte:
if the request.EAP-Type does not match a SIM based EAP-Type
then return XLAT_ACTION_FAIL
(eap_aka_sim/xlat: missing goto error in encrypt xlat causes silent encryption with tag=0 75)

7 weeks agoerror function call parameter fixed
Catalina Pineros [Mon, 9 Mar 2026 14:57:01 +0000 (10:57 -0400)] 
error function call parameter fixed
(rlm_redis_ippool_tool: fix NULL deref in driver_get_stats error path 351)

7 weeks agoreturn code (-1) when allocation failure
Catalina Pineros [Mon, 9 Mar 2026 14:50:38 +0000 (10:50 -0400)] 
return code (-1) when allocation failure
(dhcpv6/dns: return -1 on OOM in default client allocation 204)

7 weeks agoadd missing #pragma once
Catalina Pineros [Mon, 9 Mar 2026 14:13:09 +0000 (10:13 -0400)] 
add missing #pragma once
(eap_aka_sim/module.h: add missing #pragma once 70)

7 weeks agominor tweaks to edit code
Alan T. DeKok [Mon, 9 Mar 2026 21:33:34 +0000 (17:33 -0400)] 
minor tweaks to edit code

7 weeks agominor tweaks and fixes
Alan T. DeKok [Mon, 9 Mar 2026 21:14:08 +0000 (17:14 -0400)] 
minor tweaks and fixes

ferror() does not return any reasonable error value.

If we're looping over all values in an 8-bit range, don't use an
8-bit index variable.

7 weeks agoupdate end check for strings
Alan T. DeKok [Mon, 9 Mar 2026 21:12:35 +0000 (17:12 -0400)] 
update end check for strings

the check (a_end + 1) < in->end requires at least two bytes between
the two pointers. Since in->end points to the NUL terminator, this
means a trailing digit at position in->end - 1 (the very last data
byte) is never checked.

For example, parsing "123x" where x is the last character of
"in". a_end points to x, a_end + 1 == in->end, condition is false,
and any trailing data is not detected.

7 weeks agoadd checks to quiet coverity
Alan T. DeKok [Mon, 9 Mar 2026 20:59:24 +0000 (16:59 -0400)] 
add checks to quiet coverity

7 weeks agoset h && watcher if the connection succeeds immediately
Alan T. DeKok [Mon, 9 Mar 2026 20:57:35 +0000 (16:57 -0400)] 
set h && watcher if the connection succeeds immediately

7 weeks agofr_dbuff_reset_talloc() can reset to at least minimum size
Alan T. DeKok [Mon, 9 Mar 2026 20:14:07 +0000 (16:14 -0400)] 
fr_dbuff_reset_talloc() can reset to at least minimum size

and doesn't need to always reset from larger (allowed) size, back
to minimum size

7 weeks agoTypo
Nick Porter [Mon, 9 Mar 2026 18:20:02 +0000 (18:20 +0000)] 
Typo

7 weeks agoAdd Nokia IPv6 packet counters
Nick Porter [Mon, 9 Mar 2026 17:30:23 +0000 (17:30 +0000)] 
Add Nokia IPv6 packet counters

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

7 weeks agovarious minor bug fixes in dl.c
Alan T. DeKok [Mon, 9 Mar 2026 12:44:34 +0000 (08:44 -0400)] 
various minor bug fixes in dl.c

7 weeks agodon't calculate "end" until we have checked the inputs
Alan T. DeKok [Mon, 9 Mar 2026 02:08:28 +0000 (22:08 -0400)] 
don't calculate "end" until we have checked the inputs

7 weeks agoadd DNS tests for encoding, decoding, and error paths
Alan T. DeKok [Mon, 9 Mar 2026 01:18:20 +0000 (21:18 -0400)] 
add DNS tests for encoding, decoding, and error paths

7 weeks agotweak corner cases and typos
Alan T. DeKok [Mon, 9 Mar 2026 01:30:38 +0000 (21:30 -0400)] 
tweak corner cases and typos