diff options
-rw-r--r-- | openbsd-compat/Makefile.am | 1 | ||||
-rw-r--r-- | smtpd/smtpd.c | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/Makefile.am b/openbsd-compat/Makefile.am index c4be840c..7dcb8952 100644 --- a/openbsd-compat/Makefile.am +++ b/openbsd-compat/Makefile.am @@ -5,7 +5,6 @@ libopenbsd_compat_a_SOURCES = empty.c libopenbsd_compat_a_SOURCES += arc4random.c libopenbsd_compat_a_SOURCES += base64.c libopenbsd_compat_a_SOURCES += bsd-misc.c -libopenbsd_compat_a_SOURCES += entropy.c libopenbsd_compat_a_SOURCES += event_asr_run.c diff --git a/smtpd/smtpd.c b/smtpd/smtpd.c index 4b88c3df..38ab265f 100644 --- a/smtpd/smtpd.c +++ b/smtpd/smtpd.c @@ -666,7 +666,8 @@ main(int argc, char *argv[]) if (parse_config(conf, conffile, opts)) exit(1); - seed_rng(); + if (RAND_status() != 1) + errx(1, "PRNG is not seeded"); if (strlcpy(env->sc_conffile, conffile, PATH_MAX) >= PATH_MAX) |