diff options
author | Zhu Qun-Ying <zhu.qunying@gmail.com> | 2017-08-30 14:52:50 -0700 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-08-31 11:43:54 +0200 |
commit | 177503752b24299cc97ccf07062a3b79c4f28899 (patch) | |
tree | cd63089c53ab362923dfae690ce42f343d15b6ab /crypto/bio | |
parent | 5859722c45219c33e37a797190381f41241083e1 (diff) |
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)
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/b_addr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bio/b_addr.c b/crypto/bio/b_addr.c index b2cd83c392..ba26c9144a 100644 --- a/crypto/bio/b_addr.c +++ b/crypto/bio/b_addr.c @@ -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; } |