]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
word smithing
authorAlan T. DeKok <aland@freeradius.org>
Sat, 23 Sep 2023 13:30:53 +0000 (09:30 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 23 Sep 2023 13:32:03 +0000 (09:32 -0400)
doc/antora/modules/reference/pages/unlang/local.adoc

index acef2a41275529b9605881a8c0913a4b10ac5314..f1e2c437ca59645c276ebdefcd04871a76018d10 100644 (file)
@@ -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.