Bug fix for the SQL module

Alan DeKok aland@ox.org
Fri, 19 Apr 2002 12:04:38 -0400


Peter Shin <Peter.Shin@team.ozemail.com.au> wrote:
> Accounting update packets will not be stored to the database.
> 
> The reason:
> 
> The %{SQL-user-name} variable was not set hence the update query would never
> find the appropriate session to update.
> 
> The fix:
> 
> Add the sql_set_user() subroutine under case PW_STATUS_ALIVE: in rlm_sql.c
> as follow 

  OK... can you submit a patch?  (see doc/BUGS)  I don't want to go
poking around in the module without knowing exactly what I'm doing.

  Alan DeKok.