summaryrefslogtreecommitdiffstats
path: root/crypto/rand/rand_egd.c
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:28 +0100
commitff7cdc15875293a330831a80d83edbafd25a9d36 (patch)
treeddb9610650719d67335ee2e3c1f7f79fb20cad52 /crypto/rand/rand_egd.c
parent40586e462df76adf163e0d31879dc2d5fa90e109 (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)
Diffstat (limited to 'crypto/rand/rand_egd.c')
-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 bb862f61ad..4ea6846ccb 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);