FreeRADIUS/freeradius-server — pull request #376 by mcnewton (2013-07-15 13:41:21+00:00)
Title: remove debug output from main server

this took a while to chase through, but starting the server (e.g. build/bin/local/radiusd -CX -d raddb) with default config you get a Chargeable-User-Identity = '' printed out while reading in the config files (pipe the above radiusd command through cat and it will appear at the bottom, so it's going to a different file descriptor).

The "cause" is from raddb/policy.d/cui:124 -
if (Chargeable-User-Identity && (Chargeable-User-Identity != '')) {

if this is changed to Chargeable-User-Identity != "" then it doesn't print out. In fact, any "if" using single quotes seems to cause it to be printed, but double quotes, not.

The debug pair removed here is what's generating it. I can't see why it should be there, unless it's used for debugging elsewhere? In any case, a random VP appearing on the console with no context is no help at all.