summaryrefslogtreecommitdiff
path: root/src/mod_extforward.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-09-29 14:32:53 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2020-10-11 12:19:27 -0400
commit8b382a81c737f13e28572cf7e85e8a229a8a53c9 (patch)
tree4be75079f87952043be35c6df07dbda9c94c43b5 /src/mod_extforward.c
parent86e5f09062c20bc2287e91d3d70ccbf9c065805d (diff)
downloadlighttpd-git-8b382a81c737f13e28572cf7e85e8a229a8a53c9.tar.gz
[multiple] use sock_addr_get_family in more places
Diffstat (limited to 'src/mod_extforward.c')
-rw-r--r--src/mod_extforward.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_extforward.c b/src/mod_extforward.c
index 1a6829c2..b9cf3831 100644
--- a/src/mod_extforward.c
+++ b/src/mod_extforward.c
@@ -1719,8 +1719,8 @@ static int mod_extforward_network_read (connection *con,
union hap_PROXY_hdr hdr;
log_error_st *errh;
- int rc = hap_PROXY_recv(con->fd, &hdr,
- con->dst_addr.plain.sa_family, SOCK_STREAM);
+ const int family = sock_addr_get_family(&con->dst_addr);
+ int rc = hap_PROXY_recv(con->fd, &hdr, family, SOCK_STREAM);
switch (rc) {
case 2: rc = mod_extforward_hap_PROXY_v2(con, &hdr); break;
case 1: rc = mod_extforward_hap_PROXY_v1(con, &hdr); break;