diff options
Diffstat (limited to 'test/bad_dtls_test.c')
-rw-r--r-- | test/bad_dtls_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/bad_dtls_test.c b/test/bad_dtls_test.c index 8849269173..2e12de2702 100644 --- a/test/bad_dtls_test.c +++ b/test/bad_dtls_test.c @@ -331,7 +331,7 @@ static int send_record(BIO *rbio, unsigned char type, uint64_t seqnr, } while (len % 16); /* Generate IV, and encrypt */ - if (!TEST_true(RAND_bytes(iv, sizeof(iv))) + if (!TEST_int_gt(RAND_bytes(iv, sizeof(iv)), 0) || !TEST_ptr(enc_ctx = EVP_CIPHER_CTX_new()) || !TEST_true(EVP_CipherInit_ex(enc_ctx, EVP_aes_128_cbc(), NULL, enc_key, iv, 1)) |