[RADIATOR] Bug in SessSQL.pm
Eddie Stassen
estassen at gmail.com
Tue Feb 14 07:53:04 CST 2012
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))));
}
More information about the radiator
mailing list