diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-04-19 23:28:12 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-04-19 23:28:12 +0200 |
commit | 6c875982a49f6bf13461f8e30cc4c5426ab37a81 (patch) | |
tree | d92fb21656a4d840b58990b31544e2b444051d96 | |
parent | 56a037cc0ad1b2a770d0c08d3d09dee1ce600f0f (diff) | |
download | curl-bagder/sa_family_t.tar.gz |
connect: use CURL_SA_FAMILY_T for portabilitybagder/sa_family_t
Reported-by: Kevin R. Bulgrien
Bug: https://curl.se/mail/lib-2021-04/0071.html
-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); } |