Skip to content

Commit

Permalink
bio_in ownership not transferred
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Nov 19, 2024
1 parent 5184a57 commit 7d8e7d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/pkcs7/pkcs7_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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()));

Expand Down

0 comments on commit 7d8e7d0

Please sign in to comment.