(RADIATOR) perl warning with unknown dictionary attribute type

John Morrissey jwm at horde.net
Fri Mar 28 12:53:39 CST 2008


When an unknown attribute type is used in the dictionary, Radiator emits
perl warnings:

Can't use string ("") as a subroutine ref while "strict refs"
in use at /usr/share/perl5/Radius/Radius.pm line 978.

This seems to be because Radiator blindly assumes there is an entry in
%unpacker for the given attribute type:

976 $self->add_attr
977     ($aname,
978      &{$unpacker{$atype}}($value,$vtype,$aname,$dict))
979         if defined $atype;

This is Radiator 3.16; I haven't checked later versions.

john
-- 
John Morrissey          _o            /\         ----  __o
jwm at horde.net        _-< \_          /  \       ----  <  \,
www.horde.net/    __(_)/_(_)________/    \_______(_) /_(_)__

--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list