From: Timo Sirainen Date: Tue, 15 Jun 2010 16:54:12 +0000 (+0100) Subject: auth: Fixed crash when a plugin was trying to register password scheme. X-Git-Tag: 2.0.rc1~166 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=12c40a1a042d4de180b3dcef6002a8d0cf02d152;p=thirdparty%2Fdovecot%2Fcore.git auth: Fixed crash when a plugin was trying to register password scheme. --HG-- branch : HEAD --- diff --git a/src/auth/main.c b/src/auth/main.c index 230ddfd05c..9f707e96fd 100644 --- a/src/auth/main.c +++ b/src/auth/main.c @@ -98,6 +98,8 @@ static void main_preinit(void) only by root. Also load all modules here. */ passdbs_init(); userdbs_init(); + /* init schemes before plugins are loaded */ + password_schemes_init(); services = read_global_settings(); @@ -131,7 +133,6 @@ static void main_init(void) lib_signals_ignore(SIGUSR2, TRUE); child_wait_init(); - password_schemes_init(); auth_worker_server_init(); auths_init(); auth_request_handler_init();