mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 03:18:09 +00:00
firmware/u2f: memzero the readbuffer
This commit is contained in:
parent
7492cf07fc
commit
0f5c96926c
@ -175,6 +175,8 @@ void u2fhid_init_cmd(const U2FHID_FRAME *f) {
|
|||||||
|
|
||||||
void u2fhid_read_start(const U2FHID_FRAME *f) {
|
void u2fhid_read_start(const U2FHID_FRAME *f) {
|
||||||
U2F_ReadBuffer readbuffer;
|
U2F_ReadBuffer readbuffer;
|
||||||
|
memzero(&readbuffer, sizeof(readbuffer));
|
||||||
|
|
||||||
if (!(f->type & TYPE_INIT)) {
|
if (!(f->type & TYPE_INIT)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user