Skip to content

Commit

Permalink
wolfcrypt/src/dilithium.c: fix null deref in wc_dilithium_init_ex().
Browse files Browse the repository at this point in the history
  • Loading branch information
douzzer committed Jul 19, 2024
1 parent 0eeae4d commit 0aa0f26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wolfcrypt/src/dilithium.c
Original file line number Diff line number Diff line change
Expand Up @@ -6952,10 +6952,9 @@ int wc_dilithium_init_ex(dilithium_key* key, void* heap, int devId)
key->idLen = 0;
key->labelLen = 0;
#endif
key->heap = heap;
}

key->heap = heap;

return ret;
}

Expand Down

0 comments on commit 0aa0f26

Please sign in to comment.