From: Alan T. DeKok Date: Sat, 23 Sep 2023 13:30:53 +0000 (-0400) Subject: word smithing X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4796a25c16717542ea23d380e346f88d13cede6e;p=thirdparty%2Ffreeradius-server.git word smithing --- diff --git a/doc/antora/modules/reference/pages/unlang/local.adoc b/doc/antora/modules/reference/pages/unlang/local.adoc index acef2a41275..f1e2c437ca5 100644 --- a/doc/antora/modules/reference/pages/unlang/local.adoc +++ b/doc/antora/modules/reference/pages/unlang/local.adoc @@ -54,7 +54,7 @@ if (&User-Name == "bob") { # declare "len" as ALLOWED to be used uint32 len - # this test ALWAYS fails + # this test ALWAYS fails, as "len" has not been assigned a value if (&len) { ... } @@ -66,5 +66,7 @@ if (&User-Name == "bob") { } ---- +The variable declaration and assignment must be sepaarted. Constructions like `uint32 len = %(length:%{User-Name})` are not allowed. + // Copyright (C) 2023 Network RADIUS SAS. Licenced under CC-by-NC 4.0. // Development of this documentation was sponsored by Network RADIUS SAS.