diff options
| author | ivan <ivan> | 2009-08-05 02:27:36 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2009-08-05 02:27:36 +0000 | 
| commit | 0b43a6f7a36bb1b84bd195d05f5f2fdcb5140a0f (patch) | |
| tree | 3b336268d97a60dd06869cf2256759273bce0d62 /FS | |
| parent | bc6ae86fc9111d252e2dc984f0fb005bf5d825eb (diff) | |
export negative byte values to chillispot attributes as 0, RT#5815
Diffstat (limited to 'FS')
| -rw-r--r-- | FS/FS/svc_acct.pm | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index d6d132b41..afc983057 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -1408,7 +1408,7 @@ sub radius_reply {        my $is = $whatis{$what}.'bytes';        if ( $self->$is() =~ /\d/ ) {          my $big = new Math::BigInt $self->$is(); -        $big = new Math::BigInto '0' if $big->is_neg(); +        $big = new Math::BigInt '0' if $big->is_neg();          my $att = "Chillispot-Max-\u$what";          $reply{"$att-Octets"}    = $big->copy->band(0xffffffff)->bstr;          $reply{"$att-Gigawords"} = $big->copy->brsft(32)->bstr; | 
