]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
3 months agofixed double-counting, when updating source and destination statistics
Catalina Pineros [Fri, 6 Mar 2026 18:44:41 +0000 (13:44 -0500)] 
fixed double-counting, when updating source and destination statistics
code was updating both stat[src_code] and stat[dst_code], once when updating source statistics and once again when updating destination statistics.
(rlm_stats: per-IP stats double-count both src_code and dst_code 229)

3 months agoremove impossible assert
Catalina Pineros [Fri, 6 Mar 2026 17:16:23 +0000 (12:16 -0500)] 
remove impossible assert
ret == RD_KAFKA_CONF_UNKNOWN already checked in previous if statement that returns value 0. so assert is redundant, always fails, and also prevents cf_log_err() from printing error message
(lib/kafka: remove impossible assertion in kafka_topic_config_dflt 106)

3 months agoreturn code (-1) when out of memory
Catalina Pineros [Fri, 6 Mar 2026 14:41:19 +0000 (09:41 -0500)] 
return code (-1) when out of memory
(proto_dhcpv4/v6_udp.c: return 0 instead of -1 on talloc_zero failure in mod_instantiate 305)

3 months agomore tests for corner cases of RADIUS encoder
Alan T. DeKok [Sat, 7 Mar 2026 12:30:09 +0000 (07:30 -0500)] 
more tests for corner cases of RADIUS encoder

3 months agouse correct size for poisoned region
Alan T. DeKok [Fri, 6 Mar 2026 20:45:10 +0000 (15:45 -0500)] 
use correct size for poisoned region

instead of relying on "slen", which is then over-written before
un-poisoning the region.

3 months agoclean up and tweak substr tests
Alan T. DeKok [Fri, 6 Mar 2026 17:18:18 +0000 (12:18 -0500)] 
clean up and tweak substr tests

3 months agomore corner cases for internal encoder / decoder
Alan T. DeKok [Fri, 6 Mar 2026 17:11:41 +0000 (12:11 -0500)] 
more corner cases for internal encoder / decoder

3 months agomore corner cases for DER
Alan T. DeKok [Fri, 6 Mar 2026 16:14:38 +0000 (11:14 -0500)] 
more corner cases for DER

3 months agomore corner cases for TACACS+
Alan T. DeKok [Fri, 6 Mar 2026 15:34:56 +0000 (10:34 -0500)] 
more corner cases for TACACS+

3 months agoadd corner cases / error tests for DHCPv6
Alan T. DeKok [Fri, 6 Mar 2026 15:11:42 +0000 (10:11 -0500)] 
add corner cases / error tests for DHCPv6

3 months agomore tests for dhcpv4
Alan T. DeKok [Fri, 6 Mar 2026 04:08:49 +0000 (23:08 -0500)] 
more tests for dhcpv4

3 months agomore corner cases for RADIUS
Alan T. DeKok [Fri, 6 Mar 2026 04:00:59 +0000 (23:00 -0500)] 
more corner cases for RADIUS

3 months agoadd more tests for error cases and bad packets
Alan T. DeKok [Fri, 6 Mar 2026 03:54:46 +0000 (22:54 -0500)] 
add more tests for error cases and bad packets

3 months agoadd tests for more corner cases
Alan T. DeKok [Fri, 6 Mar 2026 03:43:14 +0000 (22:43 -0500)] 
add tests for more corner cases

3 months agodisallow empty input files
Alan T. DeKok [Fri, 6 Mar 2026 03:27:21 +0000 (22:27 -0500)] 
disallow empty input files

while it can be nice to do nothing, it's best to do something.

3 months agoreturn on error
Alan T. DeKok [Fri, 6 Mar 2026 03:20:44 +0000 (22:20 -0500)] 
return on error

3 months agorhel: Disable dwz (dwarf compression), so we get debuginfo usable with lldb
Arran Cudbard-Bell [Fri, 6 Mar 2026 04:29:28 +0000 (20:29 -0800)] 
rhel: Disable dwz (dwarf compression), so we get debuginfo usable with lldb

3 months agodocker: Copy GPG key from the build phase to reduce spurious failures
Arran Cudbard-Bell [Fri, 6 Mar 2026 01:56:15 +0000 (17:56 -0800)] 
docker: Copy GPG key from the build phase to reduce spurious failures

3 months agocount offers, not replies
Alan T. DeKok [Fri, 6 Mar 2026 01:25:43 +0000 (20:25 -0500)] 
count offers, not replies

3 months agocheck for end pointer, too
Alan T. DeKok [Fri, 6 Mar 2026 01:25:01 +0000 (20:25 -0500)] 
check for end pointer, too

3 months agoreturn on OOM
Alan T. DeKok [Fri, 6 Mar 2026 01:21:56 +0000 (20:21 -0500)] 
return on OOM

3 months agoupdate macro
Alan T. DeKok [Fri, 6 Mar 2026 01:18:16 +0000 (20:18 -0500)] 
update macro

3 months agoremove unused file
Alan T. DeKok [Fri, 6 Mar 2026 01:16:14 +0000 (20:16 -0500)] 
remove unused file

3 months agouse same code as previous check
Alan T. DeKok [Fri, 6 Mar 2026 01:14:58 +0000 (20:14 -0500)] 
use same code as previous check

this should really be abstracted into a common function

3 months agofree on OOM
Alan T. DeKok [Fri, 6 Mar 2026 01:13:09 +0000 (20:13 -0500)] 
free on OOM

3 months agocheck for failure when adding chain cert
Alan T. DeKok [Fri, 6 Mar 2026 01:08:54 +0000 (20:08 -0500)] 
check for failure when adding chain cert

3 months agoclose pipe after ferror() call
Alan T. DeKok [Fri, 6 Mar 2026 01:08:03 +0000 (20:08 -0500)] 
close pipe after ferror() call

3 months agoone more fix
Alan T. DeKok [Fri, 6 Mar 2026 01:04:36 +0000 (20:04 -0500)] 
one more fix

3 months agoFix debuginfo in RPM builds
Arran Cudbard-Bell [Fri, 6 Mar 2026 01:02:58 +0000 (17:02 -0800)] 
Fix debuginfo in RPM builds

Always built with -g3 no matter if it's a developer build or not, otherwise state machine issues become impossible to debug.

3 months agodon't use "index" as a variable name, it's a C library function
Alan T. DeKok [Fri, 6 Mar 2026 00:48:30 +0000 (19:48 -0500)] 
don't use "index" as a variable name, it's a C library function

the compilers aren't smart enough to notice this and complain.

3 months agotypo
Catalina Pineros [Thu, 5 Mar 2026 20:42:28 +0000 (15:42 -0500)] 
typo
(rlm_python: fix wrong variable 'index' in py_freeradius_build_parents error message 341)

3 months agorlm_sql_firebird: fix free() on talloc-allocated memory in fb_free_sqlda()
junirod [Tue, 24 Feb 2026 07:41:41 +0000 (07:41 +0000)] 
rlm_sql_firebird: fix free() on talloc-allocated memory in fb_free_sqlda()

3 months agoreturn after error, initialize var
Catalina Pineros [Thu, 5 Mar 2026 18:55:36 +0000 (13:55 -0500)] 
return after error, initialize var
(command.c: fix missing return false and uninitialized child_done 148)

3 months agoreturn after error, deallocate variable
Catalina Pineros [Thu, 5 Mar 2026 17:32:03 +0000 (12:32 -0500)] 
return after error, deallocate variable
(rlm_sql_unixodbc: fix missing return after connection failure and ind memory leak 412)

3 months agoreturn code (-1) when parse failure
Catalina Pineros [Thu, 5 Mar 2026 17:00:39 +0000 (12:00 -0500)] 
return code (-1) when parse failure
(map_to_vp: returns success (rcode=0) on fr_pair_value_from_str failure 239)

3 months agotypo
Catalina Pineros [Thu, 5 Mar 2026 16:41:04 +0000 (11:41 -0500)] 
typo
(lib/kafka: fix auto_commit property name typo (enable_auto.commit -> enable.auto.commit) 107)

3 months agoadd missing 'usage()' for consistency
Catalina Pineros [Thu, 5 Mar 2026 15:55:30 +0000 (10:55 -0500)] 
add missing 'usage()' for consistency
(rlm_redis_ippool_tool: add missing usage() call after invalid prefix error 353)

3 months agoallow queries to proceed in CONNECTING or CONNECTED states
Alan T. DeKok [Thu, 5 Mar 2026 13:31:32 +0000 (08:31 -0500)] 
allow queries to proceed in CONNECTING or CONNECTED states

instead of checking for a failure state, and missing some
failure states

3 months agouse consistent names
Alan T. DeKok [Thu, 5 Mar 2026 13:29:19 +0000 (08:29 -0500)] 
use consistent names

'conn' is the #fr_connection_t

'c' is the DB connection handle

3 months agoMAX is last valid plus one
Alan T. DeKok [Thu, 5 Mar 2026 13:09:55 +0000 (08:09 -0500)] 
MAX is last valid plus one

3 months agovarious bug fixes and tweaks to the tests
Alan T. DeKok [Thu, 5 Mar 2026 13:02:32 +0000 (08:02 -0500)] 
various bug fixes and tweaks to the tests

3 months agoclean up FDs and PID in all situations
Alan T. DeKok [Thu, 5 Mar 2026 12:52:42 +0000 (07:52 -0500)] 
clean up FDs and PID in all situations

and don't complain on cleanup if the program exited cleanly.

3 months agotypo
Alan T. DeKok [Thu, 5 Mar 2026 12:32:44 +0000 (07:32 -0500)] 
typo

3 months agouse better dlist functions, which means less code
Alan T. DeKok [Thu, 5 Mar 2026 12:24:08 +0000 (07:24 -0500)] 
use better dlist functions, which means less code

3 months agoarguably functions calling talloc_free() should return int
Alan T. DeKok [Thu, 5 Mar 2026 12:11:33 +0000 (07:11 -0500)] 
arguably functions calling talloc_free() should return int

and the callers should check the return code

3 months agotypo in doxygen
Alan T. DeKok [Thu, 5 Mar 2026 12:08:50 +0000 (07:08 -0500)] 
typo in doxygen

3 months agouse fr_dlist_talloc_free() instead of hand-rolled loop
Alan T. DeKok [Thu, 5 Mar 2026 12:05:08 +0000 (07:05 -0500)] 
use fr_dlist_talloc_free() instead of hand-rolled loop

3 months agojust use pop_head(), which is a bit clearer
Alan T. DeKok [Thu, 5 Mar 2026 12:04:39 +0000 (07:04 -0500)] 
just use pop_head(), which is a bit clearer

3 months agotypo
Alan T. DeKok [Thu, 5 Mar 2026 11:57:57 +0000 (06:57 -0500)] 
typo

3 months agouse value-box escaping function.
Alan T. DeKok [Wed, 4 Mar 2026 22:31:58 +0000 (17:31 -0500)] 
use value-box escaping function.

3 months agomash leading '.', too.
Alan T. DeKok [Wed, 4 Mar 2026 22:31:36 +0000 (17:31 -0500)] 
mash leading '.', too.

and set safe_for

3 months agofix: 1. initialise thread mutex before use
Catalina Pineros [Wed, 4 Mar 2026 19:46:35 +0000 (14:46 -0500)] 
fix: 1. initialise thread mutex before use
(rlm_stats: initialise thread mutex before use 415)

3 months agofix: 1. typo
Catalina Pineros [Wed, 4 Mar 2026 19:33:52 +0000 (14:33 -0500)] 
fix: 1. typo
(rlm_sqlcounter: fix copy-paste bug in find_prev_reset() for "never" reset 413)

3 months agofix: 1. function parameter typo fixed
Catalina Pineros [Wed, 4 Mar 2026 19:18:15 +0000 (14:18 -0500)] 
fix: 1. function parameter typo fixed
(Fix copy-paste error: response_window never validated in rlm_tacacs and rlm_radius 416)

3 months agofix: 1. exact duplicate code removed
Catalina Pineros [Wed, 4 Mar 2026 19:00:45 +0000 (14:00 -0500)] 
fix: 1. exact duplicate code removed
2. return 0  -->  return -1   (for invalid discriminator/state)
(protocols/bfd: fix duplicate detect_multi check and wrong return value in decode_proto 433)

3 months agofix: 1. missing 'false' argument when calling function
Catalina Pineros [Wed, 4 Mar 2026 18:39:25 +0000 (13:39 -0500)] 
fix: 1. missing 'false' argument when calling function
2. num_events == EINTR  -->  errno == EINTR     (typo)
3. if (*start > MY_ARRAY_SIZE)   -->   if (*start >= MY_ARRAY_SIZE)   (wraparound sometimes skipped)
(tests/util: fix missing 5th arg to fr_message_set_create, wrong EINTR check, and off-by-one 225)

3 months agofix: 1. calling wrong function, is now pop_tail (copy paste typo)
Catalina Pineros [Wed, 4 Mar 2026 16:48:15 +0000 (11:48 -0500)] 
fix: 1. calling wrong function, is now pop_tail (copy paste typo)
2. fix undefined behaviour
(lib/util/dlist: fix free_tail pop direction and sort-merge NULL deref 156)

3 months agofix: 1. pesudo --> pseudo (typo)
Catalina Pineros [Wed, 4 Mar 2026 15:40:06 +0000 (10:40 -0500)] 
fix: 1. pesudo --> pseudo (typo)
2. added outer parenthesis
(net.h/net.c: fix 'pesudo' typo in function name; add missing outer parens to IP_VHL macro 283)

3 months agojust use sprintf to match the rest of the code
Alan T. DeKok [Wed, 4 Mar 2026 22:05:46 +0000 (17:05 -0500)] 
just use sprintf to match the rest of the code

and other minor tweaks

3 months agogreatly simplify function
Alan T. DeKok [Wed, 4 Mar 2026 22:01:10 +0000 (17:01 -0500)] 
greatly simplify function

as it should only be taking unsafe inputs

3 months agothe function is only used by one caller
Alan T. DeKok [Wed, 4 Mar 2026 21:52:44 +0000 (16:52 -0500)] 
the function is only used by one caller

and doesn't have to be exposed

3 months agoadd callback for escaping value-box with sbuff erules
Alan T. DeKok [Wed, 4 Mar 2026 16:39:20 +0000 (11:39 -0500)] 
add callback for escaping value-box with sbuff erules

3 months agouse real type, and not uintptr_t
Alan T. DeKok [Wed, 4 Mar 2026 16:29:42 +0000 (11:29 -0500)] 
use real type, and not uintptr_t

3 months agoremove functionality which is useless and never worked
Alan T. DeKok [Wed, 4 Mar 2026 16:19:05 +0000 (11:19 -0500)] 
remove functionality which is useless and never worked

3 months agoadd simple tests for value-box functions
Alan T. DeKok [Wed, 4 Mar 2026 15:29:18 +0000 (10:29 -0500)] 
add simple tests for value-box functions

3 months agouse standard APIs for filename escapes, and check for errors
Alan T. DeKok [Wed, 4 Mar 2026 15:24:34 +0000 (10:24 -0500)] 
use standard APIs for filename escapes, and check for errors

3 months agoadd value-box escape with erules
Alan T. DeKok [Wed, 4 Mar 2026 15:03:12 +0000 (10:03 -0500)] 
add value-box escape with erules

there are a number of places which need it.

3 months agocontinue after \r, \n, \t
Alan T. DeKok [Wed, 4 Mar 2026 12:46:50 +0000 (07:46 -0500)] 
continue after \r, \n, \t

3 months agothe sbuff escape / unescape rules should be const
Alan T. DeKok [Wed, 4 Mar 2026 12:38:33 +0000 (07:38 -0500)] 
the sbuff escape / unescape rules should be const

3 months agomove escape sbuff sequences to utility library
Alan T. DeKok [Wed, 4 Mar 2026 12:33:55 +0000 (07:33 -0500)] 
move escape sbuff sequences to utility library

so that others can use them

3 months agocheck for initialize failure
Alan T. DeKok [Wed, 4 Mar 2026 12:06:19 +0000 (07:06 -0500)] 
check for initialize failure

3 months agotypo
Alan T. DeKok [Wed, 4 Mar 2026 12:02:48 +0000 (07:02 -0500)] 
typo

3 months agoquiet static analyzer
Alan T. DeKok [Wed, 4 Mar 2026 12:02:12 +0000 (07:02 -0500)] 
quiet static analyzer

3 months agofix: 1. return 01 --> return -1 (it's meant to be an error return val)
Catalina Pineros [Tue, 3 Mar 2026 21:22:18 +0000 (16:22 -0500)] 
fix:    1. return 01 --> return -1 (it's meant to be an error return val)
2. uid_str --> gid_str  (orelse it's checking the same condition twice)
3. uid_str --> gid_str typo (orelse it's running a gid function on a uid_str)
(fix(sem): octal return value, wrong NULL check variable, and wrong gid_t type in header 168)

3 months agoformatting bug: changed '%zu' to '%zuk' to stay consisten in error message
Catalina Pineros [Tue, 3 Mar 2026 20:59:31 +0000 (15:59 -0500)] 
formatting bug: changed '%zu' to '%zuk' to stay consisten in error message
(rlm_sql_sqlite: add missing 'k' unit to bootstrap file size error message 411)

3 months agoprotocols/der: fix fr_der_flag_has_default_value macro — trailing semicolon and spuri...
Catalina Pineros [Tue, 3 Mar 2026 19:38:07 +0000 (14:38 -0500)] 
protocols/der: fix fr_der_flag_has_default_value macro — trailing semicolon and spurious != NULL comparison

3 months agorlm_wimax: fix trailing dash overwriting null terminator in Calling-Station-Id reform...
Catalina Pineros [Tue, 3 Mar 2026 19:37:21 +0000 (14:37 -0500)] 
rlm_wimax: fix trailing dash overwriting null terminator in Calling-Station-Id reformatter

3 months agocheck proper return code
Alan T. DeKok [Tue, 3 Mar 2026 22:04:44 +0000 (17:04 -0500)] 
check proper return code

the function returns 0 for "more data", and 1 for "no data",
which is different from the other APIs

3 months agocheck for invalid hex digits
Alan T. DeKok [Tue, 3 Mar 2026 22:01:13 +0000 (17:01 -0500)] 
check for invalid hex digits

3 months agouse correct IP when prefix=0
Alan T. DeKok [Tue, 3 Mar 2026 21:55:30 +0000 (16:55 -0500)] 
use correct IP when prefix=0

3 months agovarious bug fixes in command.c
Alan T. DeKok [Tue, 3 Mar 2026 21:55:20 +0000 (16:55 -0500)] 
various bug fixes in command.c

3 months agoremove unused macro
Alan T. DeKok [Tue, 3 Mar 2026 19:51:16 +0000 (14:51 -0500)] 
remove unused macro

3 months agoturn off more warning messages
Alan T. DeKok [Tue, 3 Mar 2026 19:51:26 +0000 (14:51 -0500)] 
turn off more warning messages

3 months agoignore AI test files
Alan T. DeKok [Tue, 3 Mar 2026 19:41:20 +0000 (14:41 -0500)] 
ignore AI test files

3 months agoadd basic tests for calc.c
Alan T. DeKok [Tue, 3 Mar 2026 15:39:21 +0000 (10:39 -0500)] 
add basic tests for calc.c

3 months agoremove unused variables
Alan T. DeKok [Tue, 3 Mar 2026 18:13:04 +0000 (13:13 -0500)] 
remove unused variables

3 months agonot all packet codes are valid
Alan T. DeKok [Tue, 3 Mar 2026 18:10:52 +0000 (13:10 -0500)] 
not all packet codes are valid

3 months agocheck for errors and set flags
Alan T. DeKok [Tue, 3 Mar 2026 18:08:40 +0000 (13:08 -0500)] 
check for errors and set flags

3 months agovarious bug fixes in eap-md5
Alan T. DeKok [Tue, 3 Mar 2026 16:27:38 +0000 (11:27 -0500)] 
various bug fixes in eap-md5

we don't use "name".

check password length

add more sanity checks

3 months agoctime() can return NULL
Alan T. DeKok [Tue, 3 Mar 2026 15:20:01 +0000 (10:20 -0500)] 
ctime() can return NULL

3 months agotweak bounds
Alan T. DeKok [Tue, 3 Mar 2026 15:06:57 +0000 (10:06 -0500)] 
tweak bounds

3 months agomore fix typos
Alan T. DeKok [Tue, 3 Mar 2026 14:43:40 +0000 (09:43 -0500)] 
more fix typos

to finish the changes from bcf136dd0

3 months agotypo in macro
Alan T. DeKok [Tue, 3 Mar 2026 14:29:04 +0000 (09:29 -0500)] 
typo in macro

3 months agouse "goto fail" in more situations
Alan T. DeKok [Tue, 3 Mar 2026 14:27:42 +0000 (09:27 -0500)] 
use "goto fail" in more situations

3 months agominor tweaks and updates to the use of AI
Alan T. DeKok [Tue, 3 Mar 2026 13:39:16 +0000 (08:39 -0500)] 
minor tweaks and updates to the use of AI

3 months agoAdd client name to error message
Nick Porter [Tue, 3 Mar 2026 17:30:07 +0000 (17:30 +0000)] 
Add client name to error message

3 months agoFallback to attribute parsing if cast doesn't work
Nick Porter [Mon, 2 Mar 2026 17:58:31 +0000 (17:58 +0000)] 
Fallback to attribute parsing if cast doesn't work

This allows call_env parsing for types such as uint32 to support

foo = 10

and

foo = attr

with the value being a bare word in both cases.

3 months agomanually do dir + filename
Alan T. DeKok [Mon, 2 Mar 2026 21:51:03 +0000 (16:51 -0500)] 
manually do dir + filename

to get rid of all double '/', and to avoid walking over the
input strings repeatedly.

3 months agorelax checks in corner conditions
Alan T. DeKok [Mon, 2 Mar 2026 21:49:58 +0000 (16:49 -0500)] 
relax checks in corner conditions

3 months agoassert that the entry is in the heap
Alan T. DeKok [Mon, 2 Mar 2026 19:50:26 +0000 (14:50 -0500)] 
assert that the entry is in the heap