summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWeiguo Li <liwg06@foxmail.com>2021-12-28 00:05:54 +0800
committerTomas Mraz <tomas@openssl.org>2021-12-29 16:01:56 +0100
commitdb82fa2ac4ac9bed62e82d96561964aee9969d6b (patch)
tree6e1948e5f7ed458761a510b313bb15e0595eb4dc
parent0caf2813245f7141b982fcfd9bda402117da115c (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.c2
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);