Fix a misuse of NULL check
authorWeiguo Li <liwg06@foxmail.com>
Mon, 27 Dec 2021 16:05:54 +0000 (00:05 +0800)
committerTomas Mraz <tomas@openssl.org>
Wed, 29 Dec 2021 15:01:56 +0000 (16:01 +0100)
commitdb82fa2ac4ac9bed62e82d96561964aee9969d6b
tree6e1948e5f7ed458761a510b313bb15e0595eb4dc
parent0caf2813245f7141b982fcfd9bda402117da115c
Fix a misuse of NULL check

Fixes: #17356
CLA: trivial

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17357)

(cherry picked from commit ff7cdc15875293a330831a80d83edbafd25a9d36)
crypto/rand/rand_egd.c