diff options
author | Weiguo Li <liwg06@foxmail.com> | 2021-12-28 00:05:54 +0800 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-12-29 16:01:56 +0100 |
commit | db82fa2ac4ac9bed62e82d96561964aee9969d6b (patch) | |
tree | 6e1948e5f7ed458761a510b313bb15e0595eb4dc | |
parent | 0caf2813245f7141b982fcfd9bda402117da115c (diff) |
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)
-rw-r--r-- | crypto/rand/rand_egd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |