diff --git a/crypto/pkcs7/pkcs7_test.cc b/crypto/pkcs7/pkcs7_test.cc index 4dfe85efa3..a8199edc1b 100644 --- a/crypto/pkcs7/pkcs7_test.cc +++ b/crypto/pkcs7/pkcs7_test.cc @@ -1673,7 +1673,7 @@ TEST(PKCS7Test, DataInitFinal) { bio_in.reset(BIO_new(BIO_s_mem())); ASSERT_TRUE(p7); ASSERT_TRUE(PKCS7_set_type(p7.get(), NID_pkcs7_encrypted)); - bio.reset(PKCS7_dataInit(p7.get(), bio_in.release())); + bio.reset(PKCS7_dataInit(p7.get(), bio_in.get())); EXPECT_FALSE(bio); EXPECT_FALSE(PKCS7_dataFinal(p7.get(), bio.get()));