ssl: add zero strenght arguments to BN and RAND RNG calls
[openssl.git] / ssl / record / ssl3_record.c
index ec7d448d397d67ef08a61ca27097d0c5bdfd9ab2..8788d49e4cb5a211a5166c53bc81f3a79cd4b8f5 100644 (file)
@@ -997,7 +997,7 @@ int tls1_enc(SSL *s, SSL3_RECORD *recs, size_t n_recs, int sending,
                         SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
                         return 0;
                     } else if (RAND_bytes_ex(s->ctx->libctx, recs[ctr].input,
-                                             ivlen) <= 0) {
+                                             ivlen, 0) <= 0) {
                         SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
                         return 0;
                     }