]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
add error_cause to process_proxy_reply()
authorAlan T. DeKok <aland@freeradius.org>
Tue, 21 Oct 2025 14:33:25 +0000 (16:33 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 21 Oct 2025 14:46:12 +0000 (16:46 +0200)
commitd38cf55cb46a2ef9e63c30b5cf8c708b89dc43f4
treeae209cddb3e56c270b24adf437a9f237642517dd
parente9786895b0f8e35fa2222ac1575c69a0167a9b85
add error_cause to process_proxy_reply()

the realm routing code tracks what kind of error occured.  It then
passes the error_cause to process_proxy_reply().

If there's no proxy_reply, AND Post-Proxy-Type Fail sets

&config:Response-Packet-Type := Protocol-Error

Then we create a proxy reply of Protocol-Error, and add Error-Cause
with the correct value.

Note that this failure case is where the proxy can't send the
packet anywhere, and not where we received a Protocol-Error after
proxying a request.
src/main/process.c