diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-04-19 23:28:12 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-04-21 09:22:37 +0200 |
commit | 355aae5b7ffcfdb464ec91df8f92c52b806a9c36 (patch) | |
tree | 62b8988b05008a9fab3f22e0afc5dbcaf25d38f4 | |
parent | 04488851e291ea0fc3f32e87ea637afcf1c2ca28 (diff) | |
download | curl-355aae5b7ffcfdb464ec91df8f92c52b806a9c36.tar.gz |
connect: use CURL_SA_FAMILY_T for portability
Reported-by: Kevin R. Bulgrien
Bug: https://curl.se/mail/lib-2021-04/0071.html
Closes #6918
-rw-r--r-- | lib/connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c index 296fb6250..824ced31e 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -660,7 +660,7 @@ bool Curl_addr2string(struct sockaddr *sa, curl_socklen_t salen, #endif #if defined(HAVE_SYS_UN_H) && defined(AF_UNIX) case AF_UNIX: - if(salen > (curl_socklen_t)sizeof(sa_family_t)) { + if(salen > (curl_socklen_t)sizeof(CURL_SA_FAMILY_T)) { su = (struct sockaddr_un*)sa; msnprintf(addr, MAX_IPADR_LEN, "%s", su->sun_path); } |