]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
3 months agofree group on error
Alan T. DeKok [Mon, 2 Mar 2026 19:48:20 +0000 (14:48 -0500)] 
free group on error

3 months agoshut up analyzer
Alan T. DeKok [Mon, 2 Mar 2026 16:24:00 +0000 (11:24 -0500)] 
shut up analyzer

3 months agowhen shutdown fails, enter failed state, not closed state
Alan T. DeKok [Mon, 2 Mar 2026 16:15:11 +0000 (11:15 -0500)] 
when shutdown fails, enter failed state, not closed state

3 months agovarious bug fixes in limit.c
Alan T. DeKok [Mon, 2 Mar 2026 16:14:57 +0000 (11:14 -0500)] 
various bug fixes in limit.c

3 months agovarious bug fixes in hash.c
Alan T. DeKok [Mon, 2 Mar 2026 16:04:32 +0000 (11:04 -0500)] 
various bug fixes in hash.c

3 months agoadd locks when accessing entry
Alan T. DeKok [Mon, 2 Mar 2026 12:32:44 +0000 (07:32 -0500)] 
add locks when accessing entry

3 months agofix typo
Alan T. DeKok [Mon, 2 Mar 2026 12:29:27 +0000 (07:29 -0500)] 
fix typo

3 months agofix name comparison callbacks to use correct values
Alan T. DeKok [Sun, 1 Mar 2026 21:17:55 +0000 (16:17 -0500)] 
fix name comparison callbacks to use correct values

3 months agoreturn on failure
Alan T. DeKok [Sun, 1 Mar 2026 21:16:11 +0000 (16:16 -0500)] 
return on failure

3 months agocheck before memcpy
Alan T. DeKok [Sun, 1 Mar 2026 21:15:46 +0000 (16:15 -0500)] 
check before memcpy

3 months agouse digest_find_vp() for qop, too
Alan T. DeKok [Sun, 1 Mar 2026 21:13:51 +0000 (16:13 -0500)] 
use digest_find_vp() for qop, too

even though it's hex

3 months agopoint to correct attribute
Alan T. DeKok [Sun, 1 Mar 2026 21:11:18 +0000 (16:11 -0500)] 
point to correct attribute

3 months agotypos in lengths
Alan T. DeKok [Sun, 1 Mar 2026 21:11:08 +0000 (16:11 -0500)] 
typos in lengths

3 months agoclean up cs on error
Alan T. DeKok [Sun, 1 Mar 2026 21:09:25 +0000 (16:09 -0500)] 
clean up cs on error

3 months agoAdd test of redis_ippool with requested address
Nick Porter [Mon, 2 Mar 2026 14:51:34 +0000 (14:51 +0000)] 
Add test of redis_ippool with requested address

3 months agoRenumber lua script lines
Nick Porter [Mon, 2 Mar 2026 14:49:36 +0000 (14:49 +0000)] 
Renumber lua script lines

3 months agoHonour requested address in rlm_redis_ippool
Nick Porter [Mon, 2 Mar 2026 11:42:23 +0000 (11:42 +0000)] 
Honour requested address in rlm_redis_ippool

3 months agoCompare numbers rather than strings
Nick Porter [Mon, 2 Mar 2026 14:26:59 +0000 (14:26 +0000)] 
Compare numbers rather than strings

Since 10 > 2 but "10" < "2"

3 months agoMutex is protecting dlist maniplation, not entry->expires (CID #1682066)
Nick Porter [Mon, 2 Mar 2026 08:21:38 +0000 (08:21 +0000)] 
Mutex is protecting dlist maniplation, not entry->expires (CID #1682066)

3 months agovarious bug fixes in pool.c
Alan T. DeKok [Sun, 1 Mar 2026 20:04:52 +0000 (15:04 -0500)] 
various bug fixes in pool.c

3 months agofix pipe bio to use normal read/write blocked/resume callbacks
Alan T. DeKok [Sun, 1 Mar 2026 19:57:27 +0000 (14:57 -0500)] 
fix pipe bio to use normal read/write blocked/resume callbacks

3 months agojust use our own buffer for the pipes
Alan T. DeKok [Sun, 1 Mar 2026 19:31:52 +0000 (14:31 -0500)] 
just use our own buffer for the pipes

and tweak read/write logic to be better.

3 months agoremove duplicate print
Alan T. DeKok [Sun, 1 Mar 2026 18:55:00 +0000 (13:55 -0500)] 
remove duplicate print

3 months agomore tests for the edit code
Alan T. DeKok [Sun, 1 Mar 2026 16:45:03 +0000 (11:45 -0500)] 
more tests for the edit code

3 months agoFR_EDIT_CHILD doesn't have a vp
Alan T. DeKok [Sun, 1 Mar 2026 16:40:22 +0000 (11:40 -0500)] 
FR_EDIT_CHILD doesn't have a vp

move the check for it to before the assertions that VP is sane

3 months agocomment out talloc_get_type_abort_const() until we fix all callers
Alan T. DeKok [Sun, 1 Mar 2026 16:10:05 +0000 (11:10 -0500)] 
comment out talloc_get_type_abort_const() until we fix all callers

3 months agotypos in calc.c
Alan T. DeKok [Sun, 1 Mar 2026 16:00:20 +0000 (11:00 -0500)] 
typos in calc.c

3 months agodup the correct FD
Alan T. DeKok [Sun, 1 Mar 2026 15:58:47 +0000 (10:58 -0500)] 
dup the correct FD

3 months agotypo in cbor
Alan T. DeKok [Sun, 1 Mar 2026 15:57:23 +0000 (10:57 -0500)] 
typo in cbor

3 months agofix typos in time code
Alan T. DeKok [Sun, 1 Mar 2026 15:56:23 +0000 (10:56 -0500)] 
fix typos in time code

3 months agobetter checks for corner cases when parsing fractional seconds
Alan T. DeKok [Sun, 1 Mar 2026 15:55:02 +0000 (10:55 -0500)] 
better checks for corner cases when parsing fractional seconds

3 months agovarious bug fixes in timer.c
Alan T. DeKok [Sun, 1 Mar 2026 15:52:25 +0000 (10:52 -0500)] 
various bug fixes in timer.c

3 months agoremove duplicate code
Alan T. DeKok [Sun, 1 Mar 2026 15:50:06 +0000 (10:50 -0500)] 
remove duplicate code

3 months agoadd MEM()
Alan T. DeKok [Sun, 1 Mar 2026 15:47:45 +0000 (10:47 -0500)] 
add MEM()

3 months agouse vp->da instead of da
Alan T. DeKok [Sun, 1 Mar 2026 15:47:33 +0000 (10:47 -0500)] 
use vp->da instead of da

3 months agoclean up for alignment, overflow checks, etc.
Alan T. DeKok [Sun, 1 Mar 2026 15:09:37 +0000 (10:09 -0500)] 
clean up for alignment, overflow checks, etc.

arguably this code should just be removed, as pretty much every
modern OS doesn't need these wrappers

3 months agouse value-box API rather than hand-rolled code
Alan T. DeKok [Sun, 1 Mar 2026 14:42:26 +0000 (09:42 -0500)] 
use value-box API rather than hand-rolled code

3 months agouse talloc_strlen() instead of talloc_array_length() - 1
Alan T. DeKok [Sat, 28 Feb 2026 14:43:43 +0000 (09:43 -0500)] 
use talloc_strlen() instead of talloc_array_length() - 1

3 months agouse talloc_strdup() now that it's a define for talloc_typed_strdup()
Alan T. DeKok [Sat, 28 Feb 2026 14:44:05 +0000 (09:44 -0500)] 
use talloc_strdup() now that it's a define for talloc_typed_strdup()

3 months agooutputs depend on the libraries that we're using
Alan T. DeKok [Sat, 28 Feb 2026 16:30:51 +0000 (11:30 -0500)] 
outputs depend on the libraries that we're using

3 months agouse correct callback for copy, instead of recursing
Alan T. DeKok [Sat, 28 Feb 2026 15:37:57 +0000 (10:37 -0500)] 
use correct callback for copy, instead of recursing

3 months agotypos in pair_tokenize.c
Alan T. DeKok [Sat, 28 Feb 2026 15:36:21 +0000 (10:36 -0500)] 
typos in pair_tokenize.c

3 months agoset type for talloc_strdup() and friends
Alan T. DeKok [Sat, 28 Feb 2026 14:31:23 +0000 (09:31 -0500)] 
set type for talloc_strdup() and friends

The talloc string functions set the type of the string to the
string contents.  Which makes it very difficult to do type checking
on them.  As such, we wrap the various functions in ones which set
the name to something reasonable.

3 months agodon't pass "const" to talloc functions
Alan T. DeKok [Sat, 28 Feb 2026 14:25:40 +0000 (09:25 -0500)] 
don't pass "const" to talloc functions

3 months agosecret may be NULL, and make code more consistent
Alan T. DeKok [Sat, 28 Feb 2026 14:24:49 +0000 (09:24 -0500)] 
secret may be NULL, and make code more consistent

3 months agoparent filename off of thread, not inst
Alan T. DeKok [Sat, 28 Feb 2026 14:18:02 +0000 (09:18 -0500)] 
parent filename off of thread, not inst

3 months agouse correct attribute for duplicate checks
Alan T. DeKok [Sat, 28 Feb 2026 13:48:21 +0000 (08:48 -0500)] 
use correct attribute for duplicate checks

3 months agowarn if they're using a secret other than 'radsec' for TLS.
Alan T. DeKok [Sat, 28 Feb 2026 13:45:59 +0000 (08:45 -0500)] 
warn if they're using a secret other than 'radsec' for TLS.

@todo - also when we do DTLS, the secret should be different.
And when ALPN is used, we don't have a secret

3 months agoclean up on failure.
Alan T. DeKok [Sat, 28 Feb 2026 13:42:13 +0000 (08:42 -0500)] 
clean up on failure.

which doesn't matter in practice, as we don't dynamically read
users files.  But it's good practice

3 months agoclean up on corner case of failure
Alan T. DeKok [Sat, 28 Feb 2026 13:41:46 +0000 (08:41 -0500)] 
clean up on corner case of failure

and use "goto fail" in more places, to ensure a common cleanup
path

3 months agotypo in name match
Alan T. DeKok [Sat, 28 Feb 2026 13:37:35 +0000 (08:37 -0500)] 
typo in name match

3 months agoincrement count as per docs
Alan T. DeKok [Sat, 28 Feb 2026 13:36:58 +0000 (08:36 -0500)] 
increment count as per docs

3 months agodon't leak FDs on corner cases
Alan T. DeKok [Sat, 28 Feb 2026 13:35:40 +0000 (08:35 -0500)] 
don't leak FDs on corner cases

3 months agotypos
Alan T. DeKok [Sat, 28 Feb 2026 13:30:05 +0000 (08:30 -0500)] 
typos

3 months agomulti-thread fail is different from single-thread fail
Alan T. DeKok [Sat, 28 Feb 2026 13:28:19 +0000 (08:28 -0500)] 
multi-thread fail is different from single-thread fail

3 months agoclean up on error, and insert into list only on success
Alan T. DeKok [Sat, 28 Feb 2026 13:26:42 +0000 (08:26 -0500)] 
clean up on error, and insert into list only on success

3 months agoremove duplicate code, and tweak order of existing code to match
Alan T. DeKok [Sat, 28 Feb 2026 13:22:50 +0000 (08:22 -0500)] 
remove duplicate code, and tweak order of existing code to match

3 months agofix various bugs in unit_test_map
Alan T. DeKok [Sat, 28 Feb 2026 13:18:30 +0000 (08:18 -0500)] 
fix various bugs in unit_test_map

3 months agodon't re-alloc memory, and always close fp on exit
Alan T. DeKok [Sat, 28 Feb 2026 13:14:25 +0000 (08:14 -0500)] 
don't re-alloc memory, and always close fp on exit

3 months agofix typo - don't call init twice
Alan T. DeKok [Sat, 28 Feb 2026 13:12:32 +0000 (08:12 -0500)] 
fix typo - don't call init twice

3 months agoadd tests for corner cases of keywords
Alan T. DeKok [Fri, 27 Feb 2026 23:40:13 +0000 (18:40 -0500)] 
add tests for corner cases of keywords

3 months agocheck extensions, too
Alan T. DeKok [Fri, 27 Feb 2026 22:39:48 +0000 (17:39 -0500)] 
check extensions, too

3 months agotypo - use & instead of modulo
Alan T. DeKok [Fri, 27 Feb 2026 22:36:29 +0000 (17:36 -0500)] 
typo - use & instead of modulo

3 months agotypo in error messages
Alan T. DeKok [Fri, 27 Feb 2026 22:33:31 +0000 (17:33 -0500)] 
typo in error messages

3 months agotrack memory with talloc
Alan T. DeKok [Fri, 27 Feb 2026 22:30:11 +0000 (17:30 -0500)] 
track memory with talloc

TBH, this module should either be discarded, or re-written from
scratch.  It's pretty terrible

3 months agoadd tests for cf_util, etc.
Alan T. DeKok [Fri, 27 Feb 2026 22:20:10 +0000 (17:20 -0500)] 
add tests for cf_util, etc.

3 months agovarious bug fixes for tmpl_dcursor.c
Alan T. DeKok [Fri, 27 Feb 2026 22:19:39 +0000 (17:19 -0500)] 
various bug fixes for tmpl_dcursor.c

don't return freed pointer

3 months agominor fixes to rlm_eap
Alan T. DeKok [Fri, 27 Feb 2026 22:03:35 +0000 (17:03 -0500)] 
minor fixes to rlm_eap

3 months agouse SBUFF_CHAR_CLASS instead of UINT8_MAX + 1
Alan T. DeKok [Fri, 27 Feb 2026 21:56:09 +0000 (16:56 -0500)] 
use SBUFF_CHAR_CLASS instead of UINT8_MAX + 1

and fix a few issues where it wasn't using the "+ 1"

3 months agoadd tmpl tests
Alan T. DeKok [Fri, 27 Feb 2026 16:35:41 +0000 (11:35 -0500)] 
add tmpl tests

to avoid regressions, and sanity check the code.

3 months agocomplain on invalid input
Alan T. DeKok [Fri, 27 Feb 2026 20:24:14 +0000 (15:24 -0500)] 
complain on invalid input

3 months agoreturn on failure
Alan T. DeKok [Fri, 27 Feb 2026 20:20:38 +0000 (15:20 -0500)] 
return on failure

3 months agouse correct variable
Alan T. DeKok [Fri, 27 Feb 2026 20:18:17 +0000 (15:18 -0500)] 
use correct variable

3 months agovarious bug fixes in password.c
Alan T. DeKok [Fri, 27 Feb 2026 20:15:34 +0000 (15:15 -0500)] 
various bug fixes in password.c

3 months agomore error checks for OOM, etc.
Alan T. DeKok [Fri, 27 Feb 2026 20:07:34 +0000 (15:07 -0500)] 
more error checks for OOM, etc.

3 months agovarious bug fixes in connection.c
Alan T. DeKok [Fri, 27 Feb 2026 19:59:35 +0000 (14:59 -0500)] 
various bug fixes in connection.c

reset processing_signals on freed, instead of returning.
otherwise it's locked forever.

leave one-shot watchers enabled until they're finished, otherwise
connection_deferred_signal_process() will access a freed watcher

allow more states in the handlers, as they're all valid.

3 months agoreturn error on OOM
Alan T. DeKok [Fri, 27 Feb 2026 16:33:47 +0000 (11:33 -0500)] 
return error on OOM

3 months agoFree connected dynamic client parents when their idle time expires
Nick Porter [Fri, 27 Feb 2026 15:02:16 +0000 (15:02 +0000)] 
Free connected dynamic client parents when their idle time expires

Without this, the "parent" client which is built when a connected
dynamic client is first created never expires, so the client is never
reloaded.

3 months agoadd missing enum.
Alan T. DeKok [Fri, 27 Feb 2026 13:36:08 +0000 (08:36 -0500)] 
add missing enum.

Why not just set TRUNK_CONN_ALL = ~0?

3 months agotypos and use dlist API properly
Alan T. DeKok [Fri, 27 Feb 2026 13:31:53 +0000 (08:31 -0500)] 
typos and use dlist API properly

3 months agofix typos
Alan T. DeKok [Fri, 27 Feb 2026 13:11:04 +0000 (08:11 -0500)] 
fix typos

3 months agoquiet static analysis
Alan T. DeKok [Fri, 27 Feb 2026 13:09:09 +0000 (08:09 -0500)] 
quiet static analysis

3 months agoNeed inline for always_inline to work
Nick Porter [Fri, 27 Feb 2026 10:52:56 +0000 (10:52 +0000)] 
Need inline for always_inline to work

3 months agovarious tweaks to tmpl_tokenize.c
Alan T. DeKok [Fri, 27 Feb 2026 00:59:52 +0000 (19:59 -0500)] 
various tweaks to tmpl_tokenize.c

3 months agocheck for !fips here, too
Alan T. DeKok [Fri, 27 Feb 2026 00:43:54 +0000 (19:43 -0500)] 
check for !fips here, too

3 months agotypo
Alan T. DeKok [Fri, 27 Feb 2026 00:36:33 +0000 (19:36 -0500)] 
typo

3 months agodocs-v4: moved network security best practices page to `Introduction >> Best Practices`.
nolade [Thu, 26 Feb 2026 21:49:52 +0000 (16:49 -0500)] 
docs-v4: moved network security best practices page to `Introduction >> Best Practices`.

3 months agodocs-v4: Added more details to Developer >> Contributing section including git comman...
nolade [Thu, 26 Feb 2026 21:25:26 +0000 (16:25 -0500)] 
docs-v4: Added more details to Developer >> Contributing section including git commands, PR submisssions. Rearranged hierarchy, added subsections, and formatted accordingly to style guide.

3 months agodocs-v4: Correct nav link for `unlang >> List of Data Types`
nolade [Thu, 26 Feb 2026 22:24:20 +0000 (17:24 -0500)] 
docs-v4: Correct nav link for `unlang >> List of Data Types`

3 months agocorrect check for FIPS mode, and re-init free list
Alan T. DeKok [Thu, 26 Feb 2026 15:05:59 +0000 (10:05 -0500)] 
correct check for FIPS mode, and re-init free list

when changing digest functions, we have to clear and re-initialize
the free list, otherwise the contexts are associated with the
wrong ctx_free() function.

3 months agobetter error messages
Alan T. DeKok [Thu, 26 Feb 2026 20:58:04 +0000 (15:58 -0500)] 
better error messages

when local variables are defined in the wrong place

3 months agovarious bug fixes in map.c
Alan T. DeKok [Thu, 26 Feb 2026 20:43:32 +0000 (15:43 -0500)] 
various bug fixes in map.c

don't leak, and make "-=" work a bit better

3 months agovarious bug fixes in rlm_mschap
Alan T. DeKok [Thu, 26 Feb 2026 19:31:37 +0000 (14:31 -0500)] 
various bug fixes in rlm_mschap

3 months agoset result, too
Alan T. DeKok [Thu, 26 Feb 2026 18:48:55 +0000 (13:48 -0500)] 
set result, too

3 months agomore checks for corner cases and invalid data
Alan T. DeKok [Thu, 26 Feb 2026 18:46:33 +0000 (13:46 -0500)] 
more checks for corner cases and invalid data

3 months agotypo
Alan T. DeKok [Thu, 26 Feb 2026 18:34:05 +0000 (13:34 -0500)] 
typo

3 months agoremove PID file on error, too
Alan T. DeKok [Thu, 26 Feb 2026 18:29:43 +0000 (13:29 -0500)] 
remove PID file on error, too

3 months agostatus checks can expire, too
Alan T. DeKok [Thu, 26 Feb 2026 15:51:45 +0000 (10:51 -0500)] 
status checks can expire, too

3 months agoadd more checks and complaints
Alan T. DeKok [Thu, 26 Feb 2026 15:49:11 +0000 (10:49 -0500)] 
add more checks and complaints

3 months agoremove old from htrie, too
Alan T. DeKok [Thu, 26 Feb 2026 15:39:41 +0000 (10:39 -0500)] 
remove old from htrie, too