Home GnuPG

random: Avoid dereference of the ec before checking for NULL

Description

random: Avoid dereference of the ec before checking for NULL

* random/jitterentropy-noise.c (jent_memaccess): Move check before
  dereferencing the pointer.
  • Signed-off-by: Jakub Jelen <jjelen@redhat.com>

Details

Provenance
JakujeAuthored on Jan 28 2022, 11:51 AM
gniibeCommitted on Jan 31 2022, 10:58 AM
Parents
rC77512c510bf7: kdf: Fix computation by big-endian machine.
Branches
Unknown
Tags
Unknown