From: Weiguo Li Date: Mon, 27 Dec 2021 16:05:54 +0000 (+0800) Subject: Fix a misuse of NULL check X-Git-Tag: openssl-3.2.0-alpha1~3165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff7cdc15875293a330831a80d83edbafd25a9d36;p=thirdparty%2Fopenssl.git Fix a misuse of NULL check Fixes: #17356 CLA: trivial Reviewed-by: Ben Kaduk Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/17357) --- diff --git a/crypto/rand/rand_egd.c b/crypto/rand/rand_egd.c index bb862f61ad0..4ea6846ccbd 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);