From: Zhu Qun-Ying Date: Wed, 30 Aug 2017 21:52:50 +0000 (-0700) Subject: Fixed address family test error for AF_UNIX in BIO_ADDR_make X-Git-Tag: OpenSSL_1_1_0g~80 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=03b4e1c3496ae009a0e1df1a39c48b051dcca3db;p=oweals%2Fopenssl.git Fixed address family test error for AF_UNIX in BIO_ADDR_make CLA: trivial Reviewed-by: Rich Salz Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/4298) (cherry picked from commit 177503752b24299cc97ccf07062a3b79c4f28899) --- diff --git a/crypto/bio/b_addr.c b/crypto/bio/b_addr.c index 289404c16b..6c2b0e906c 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; }