The branch openssl-3.0 has been updated via db82fa2ac4ac9bed62e82d96561964aee9969d6b (commit) from 0caf2813245f7141b982fcfd9bda402117da115c (commit)
- Log ----------------------------------------------------------------- commit db82fa2ac4ac9bed62e82d96561964aee9969d6b Author: Weiguo Li <liw...@foxmail.com> Date: Tue Dec 28 00:05:54 2021 +0800 Fix a misuse of NULL check Fixes: #17356 CLA: trivial Reviewed-by: Ben Kaduk <ka...@mit.edu> Reviewed-by: Tomas Mraz <to...@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17357) (cherry picked from commit ff7cdc15875293a330831a80d83edbafd25a9d36) ----------------------------------------------------------------------- Summary of changes: crypto/rand/rand_egd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/rand/rand_egd.c b/crypto/rand/rand_egd.c index dc1833169c..2067ececaf 100644 --- a/crypto/rand/rand_egd.c +++ b/crypto/rand/rand_egd.c @@ -80,7 +80,7 @@ int hpns_socket(int family, # define AF_UNIX_PORTABILITY "$ZAFN2" # define AF_UNIX_COMPATIBILITY "$ZPLS" - if (!_arg_present(transport) || transport != NULL || transport[0] == '\0') + if (!_arg_present(transport) || transport == NULL || transport[0] == '\0') return socket(family, type, protocol); socket_transport_name_get(AF_UNIX, current_transport, 20);