Skip to content

Commit f4954d3

Browse files
authored
attempt to fix inane coverage nonsense (#13156)
1 parent bf7fadf commit f4954d3

File tree

1 file changed

+3
-2
lines changed
  • src/rust/cryptography-openssl/src

1 file changed

+3
-2
lines changed

src/rust/cryptography-openssl/src/aead.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ impl AeadCtxRef {
5858
let mut out_len = out.len();
5959
// SAFETY: All the lengths and pointers are known valid.
6060
unsafe {
61-
cvt(ffi::EVP_AEAD_CTX_seal(
61+
let res = ffi::EVP_AEAD_CTX_seal(
6262
self.as_ptr(),
6363
out.as_mut_ptr(),
6464
&mut out_len,
@@ -69,7 +69,8 @@ impl AeadCtxRef {
6969
data.len(),
7070
ad.as_ptr(),
7171
ad.len(),
72-
))?;
72+
);
73+
cvt(res)?;
7374
}
7475
Ok(())
7576
}

0 commit comments

Comments
 (0)