projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add range-checking to RAND_DRBG_set_reseed_interval
[openssl.git]
/
crypto
/
rand
/
drbg_rand.c
diff --git
a/crypto/rand/drbg_rand.c
b/crypto/rand/drbg_rand.c
index 858f74a45e65e53a6ffc464e0cebdc4985200930..4ff347c7ea901faabb0e614090ef7c67744ee86e 100644
(file)
--- a/
crypto/rand/drbg_rand.c
+++ b/
crypto/rand/drbg_rand.c
@@
-372,7
+372,7
@@
int ctr_init(DRBG_CTX *dctx)
}
dctx->max_request = 1 << 16;
- dctx->reseed_interval =
1 << 24
;
+ dctx->reseed_interval =
MAX_RESEED
;
return 1;
}