Bug #1082

mod_sql_vhost_core bug renders plugin useless

Added by icy 663 days ago. Updated 631 days ago.

Status:Fixed Start:
Priority:High Due date:
Assigned to:- % Done:

0%

Category:mod_mysql_vhost
Target version:1.5.0
Pending:

Resolution:

fixed


Description

Line 182 in mod_sql_vhost_core: the if statement will ALWAYS be true because mod_mysql_vhost_get_vhost() always returns HANDLER_GO_ON (which is not 0) and therefor disabled the whole plugin.

Changing the returnvalue in line 271 in mod_mysql_vhost.c from HANDLER_GO_ON to 0 will fix this issue.
Or one could change all but the last return value in mysql_vhost_get_vhost to HANDLER_ERROR and in the mentioned if statement in mod_sql_vhost_core the 0 to HANDLER_GO_ON or to if (HANDLER_ERROR == ..)

History

04/17/2007 06:05 PM - jan

  • Status changed from New to Fixed
  • Resolution set to fixed

this should be fixed in r1746

Also available in: Atom PDF