mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
Fixed address family test error for AF_UNIX in BIO_ADDR_make
CLA: trivial Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4298)
This commit is contained in:
parent
5859722c45
commit
177503752b
@ -76,7 +76,7 @@ int BIO_ADDR_make(BIO_ADDR *ap, const struct sockaddr *sa)
|
||||
}
|
||||
#endif
|
||||
#ifdef AF_UNIX
|
||||
if (ap->sa.sa_family == AF_UNIX) {
|
||||
if (sa->sa_family == AF_UNIX) {
|
||||
ap->s_un = *(const struct sockaddr_un *)sa;
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user