UpdateQuery <SessionDatabase SQL> crashes Radiator when the query contains %{Quote:...}. This is due to $self not being passed as the third parameter to Radius::Util::format_special(). The patch below fixes it.
Regards, Eddie Stassen --- SessSQL.pm.ORIG 2012-02-14 15:32:12.000000000 +0200 +++ SessSQL.pm 2012-02-14 15:44:42.000000000 +0200 @@ -132,7 +132,9 @@ $self->log($main::LOG_DEBUG, "$self->{Identifier} Updating session for $name, $nas_id, $nas_port", $p); # Now add the new one - $self->do(&Radius::Util::format_special($self->{UpdateQuery}, $p)); + $self->do(&$self->{UpdateQuery}, $p, $self, + $self->quote($name), $nas_id, $nas_port+0, + $self->quote($p->getAttrByNum($Radius::Radius::ACCT_SESSION_ID)))); } _______________________________________________ radiator mailing list radiator@open.com.au http://www.open.com.au/mailman/listinfo/radiator