From: Timo Sirainen Date: Tue, 15 Jul 2003 09:44:56 +0000 (+0300) Subject: Added missing randgen initialization. X-Git-Tag: 1.1.alpha1~4486 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa78a2506ee69a6bd58cc706210ee79b62ec0954;p=thirdparty%2Fdovecot%2Fcore.git Added missing randgen initialization. --HG-- branch : HEAD --- diff --git a/src/pop3/main.c b/src/pop3/main.c index 8fadadac66..ba340ab868 100644 --- a/src/pop3/main.c +++ b/src/pop3/main.c @@ -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(); }