]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Added missing randgen initialization.
authorTimo Sirainen <tss@iki.fi>
Tue, 15 Jul 2003 09:44:56 +0000 (12:44 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 15 Jul 2003 09:44:56 +0000 (12:44 +0300)
--HG--
branch : HEAD

src/pop3/main.c

index 8fadadac66d1382ecdc49c81f243913ef2951047..ba340ab868e1deed77a9e26cd457e47d39fdb378 100644 (file)
@@ -6,6 +6,7 @@
 #include "restrict-access.h"
 #include "fd-close-on-exec.h"
 #include "process-title.h"
+#include "randgen.h"
 #include "module-dir.h"
 #include "mail-storage.h"
 
@@ -56,6 +57,10 @@ static void drop_privileges(void)
        /* Log file or syslog opening probably requires roots */
        open_logfile();
 
+       /* Most likely needed. Have to open /dev/urandom before possible
+          chrooting. */
+       random_init();
+
        restrict_access_by_env(!IS_STANDALONE());
 }
 
@@ -113,6 +118,7 @@ static void main_deinit(void)
 
        clients_deinit();
         mail_storage_deinit();
+       random_deinit();
 
        closelog();
 }