mirror of https://github.com/openssl/openssl.git
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:
parent
40586e462d
commit
ff7cdc1587
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue