Skip to content

Commit c761755

Browse files
committed
bsdkm driver: tiny cleanup.
1 parent 7cffbb6 commit c761755

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

bsdkm/wolfkmod.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ static int wolfkdriv_cbc_work(device_t dev, wolfkdriv_session_t * session,
773773
crypto_read_iv(crp, iv);
774774
error = wc_AesSetIV(&aes, iv);
775775
if (error) {
776-
device_printf(dev, "error: wc_AesSetKey: %d\n", error);
776+
device_printf(dev, "error: wc_AesSetIV: %d\n", error);
777777
goto cbc_work_out;
778778
}
779779

@@ -863,7 +863,6 @@ static int wolfkdriv_cbc_work(device_t dev, wolfkdriv_session_t * session,
863863
cbc_work_out:
864864
/* cleanup. */
865865
km_AesFree(&aes);
866-
wc_ForceZero(&aes, sizeof(aes));
867866
wc_ForceZero(iv, sizeof(iv));
868867
wc_ForceZero(block, sizeof(block));
869868

0 commit comments

Comments
 (0)