projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added comment for the frag->reassembly == NULL case as per feedback from Emilia
[openssl.git]
/
ssl
/
tls_srp.c
diff --git
a/ssl/tls_srp.c
b/ssl/tls_srp.c
index 8512c4daf6527f116d5eb3cbbe71dfbc8ec07a29..2315a7c0a2e9f3ea84c3096ae66d3ede12c60dde 100644
(file)
--- a/
ssl/tls_srp.c
+++ b/
ssl/tls_srp.c
@@
-242,7
+242,8
@@
int SSL_srp_server_param_with_username(SSL *s, int *ad)
(s->srp_ctx.v == NULL))
return SSL3_AL_FATAL;
- RAND_bytes(b, sizeof(b));
+ if (RAND_bytes(b, sizeof(b)) <= 0)
+ return SSL3_AL_FATAL;
s->srp_ctx.b = BN_bin2bn(b,sizeof(b),NULL);
OPENSSL_cleanse(b,sizeof(b));