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)
This commit is contained in:
Weiguo Li 2021-12-28 00:05:54 +08:00 committed by Tomas Mraz
parent 40586e462d
commit ff7cdc1587
1 changed files with 1 additions and 1 deletions

View File

@ -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);