]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Fixed crash when a plugin was trying to register password scheme.
authorTimo Sirainen <tss@iki.fi>
Tue, 15 Jun 2010 16:54:12 +0000 (17:54 +0100)
committerTimo Sirainen <tss@iki.fi>
Tue, 15 Jun 2010 16:54:12 +0000 (17:54 +0100)
--HG--
branch : HEAD

src/auth/main.c

index 230ddfd05c607cb640685adda1990fc1ae4b26a8..9f707e96fdc60dc69caebf3b867774c4c75ce5e9 100644 (file)
@@ -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();