While here, check for failure from RAND_bytes_ex as well.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12111)
|| !TEST_true(BIO_get_ktls_send(serverssl->wbio)))
goto end;
- RAND_bytes(buf, SENDFILE_SZ);
+ if (!TEST_true(RAND_bytes_ex(libctx, buf, SENDFILE_SZ)))
+ goto end;
+
out = BIO_new_file(tmpfilename, "wb");
if (!TEST_ptr(out))
goto end;