changeset 1620:124a42f0be3a HEAD

Added missing randgen initialization.
author Timo Sirainen <tss@iki.fi>
date Tue, 15 Jul 2003 12:44:56 +0300
parents 5bdda4147b36
children 401f0c3a3aa2
files src/pop3/main.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/pop3/main.c	Mon Jul 14 02:01:06 2003 +0300
+++ b/src/pop3/main.c	Tue Jul 15 12:44:56 2003 +0300
@@ -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 @@
 	/* 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 @@
 
 	clients_deinit();
         mail_storage_deinit();
+	random_deinit();
 
 	closelog();
 }