evaluated result is wrong

Stephan Kirsten stephan.kirsten at fbn-dd.de
Sun Dec 20 17:07:54 CET 2009


Hello,

first setup: FreeRADIUS Version 2.1.7, for host x86_64-pc-linux-gnu, 
built on Dec 10 2009 at 17:33:51 on Debian Lenny build via dpkg-buildpackage

I have a question regarding this debug log output. I'm a bit confused 
about this logic operations and the boolean result:

Sun Dec 20 15:44:46 2009 : Info: ++? if ("%{control:Tmp-Integer-4}" >= 
"%{control:Tmp-Integer-5}")
Sun Dec 20 15:44:46 2009 : Info:        expand: %{control:Tmp-Integer-4} 
-> 32933844
Sun Dec 20 15:44:46 2009 : Info:        expand: %{control:Tmp-Integer-5} 
-> 2785017856
Sun Dec 20 15:44:46 2009 : Info: ? Evaluating 
("%{control:Tmp-Integer-4}" >= "%{control:Tmp-Integer-5}") -> TRUE
Sun Dec 20 15:44:46 2009 : Info: ++? if ("%{control:Tmp-Integer-4}" >= 
"%{control:Tmp-Integer-5}") -> TRUE
Sun Dec 20 15:44:46 2009 : Info: ++- entering if 
("%{control:Tmp-Integer-4}" >= "%{control:Tmp-Integer-5}") {...}
Sun Dec 20 15:44:46 2009 : Info:        expand: USER %{User-Name}: hat 
Traffic-Limit erreicht! -> USER Stephan.Kirsten: hat Traffic-Limit erreicht!
Sun Dec 20 15:44:46 2009 : Info: +++[reply] returns ok

should obviously became false and won't expand


Sun Dec 20 15:44:46 2009 : Info: ++- if ("%{control:Tmp-Integer-4}" >= 
"%{control:Tmp-Integer-5}") returns ok
Sun Dec 20 15:44:46 2009 : Info: ++? if ("%{control:Tmp-Integer-4}" < 
"%{control:Tmp-Integer-5}")
Sun Dec 20 15:44:46 2009 : Info:        expand: %{control:Tmp-Integer-4} 
-> 32933844
Sun Dec 20 15:44:46 2009 : Info:        expand: %{control:Tmp-Integer-5} 
-> 2785017856
Sun Dec 20 15:44:46 2009 : Info: ? Evaluating 
("%{control:Tmp-Integer-4}" < "%{control:Tmp-Integer-5}") -> FALSE
Sun Dec 20 15:44:46 2009 : Info: ++? if ("%{control:Tmp-Integer-4}" < 
"%{control:Tmp-Integer-5}") -> FALSE

should be true and expanded

So how does this come together? The debug log is attached to this mail.

I hope someone ca clarify this problem

-Stephan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: radius.log
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20091220/b50d5204/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3896 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20091220/b50d5204/attachment.bin>


More information about the Freeradius-Users mailing list