diff options
author | Damien Miller <djm@mindrot.org> | 2000-05-01 16:03:55 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-05-01 16:03:55 +0200 |
commit | fc0b11b5aa95f43109b384c6c752d2c20963c31a (patch) | |
tree | c9d85b50b10e2b561401a3f8f7d5576549f3dae1 /entropy.c | |
parent | - Deprecate perl-tk askpass. (diff) | |
download | openssh-fc0b11b5aa95f43109b384c6c752d2c20963c31a.tar.xz openssh-fc0b11b5aa95f43109b384c6c752d2c20963c31a.zip |
- Irix portability fixes - don't include netinet headers more than once
- Make sure we don't save PRNG seed more than once
Diffstat (limited to 'entropy.c')
-rw-r--r-- | entropy.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -35,7 +35,7 @@ #include <openssl/rand.h> #include <openssl/sha.h> -RCSID("$Id: entropy.c,v 1.6 2000/04/29 23:30:46 damien Exp $"); +RCSID("$Id: entropy.c,v 1.7 2000/05/01 14:03:56 damien Exp $"); #ifdef EGD_SOCKET #ifndef offsetof @@ -520,6 +520,8 @@ prng_write_seedfile(void) { if (prng_seed_saved) return; + prng_seed_saved = 1; + pw = getpwuid(getuid()); if (pw == NULL) fatal("Couldn't get password entry for current user (%i): %s", |