From 609c9bf7d4e767c7e3908b63b6e8d7c4bfae5e81 Mon Sep 17 00:00:00 2001 From: "mcgreer%netscape.com" Date: Wed, 23 Aug 2000 18:11:47 +0000 Subject: [PATCH] don't zero input to random update (RNG_SystemInfoForRNG uses environment as input). Fix for bug 49898. --- security/nss/lib/freebl/prng_fips1861.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/security/nss/lib/freebl/prng_fips1861.c b/security/nss/lib/freebl/prng_fips1861.c index bba5437bf51d..7dc7b53ff09c 100644 --- a/security/nss/lib/freebl/prng_fips1861.c +++ b/security/nss/lib/freebl/prng_fips1861.c @@ -31,7 +31,7 @@ * may use your version of this file under either the MPL or the * GPL. * - * $Id: prng_fips1861.c,v 1.5 2000/08/08 20:30:56 mcgreer%netscape.com Exp $ + * $Id: prng_fips1861.c,v 1.6 2000/08/23 18:11:47 mcgreer%netscape.com Exp $ */ #include "prerr.h" @@ -334,7 +334,6 @@ prng_RandomUpdate(RNGContext *rng, void *data, size_t bytes, unsigned char *q) /* --- UNLOCKED --- */ /* housekeeping */ memset(inputhash, 0, BSIZE); - memset(data, 0, bytes); /* let the caller free */ return rv; }