зеркало из https://github.com/mozilla/gecko-dev.git
don't zero input to random update (RNG_SystemInfoForRNG uses environment as input). Fix for bug 49898.
This commit is contained in:
Родитель
9abec73fbe
Коммит
609c9bf7d4
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче