From ff76c936221a0fd68a1996c10f0d1fe182128047 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Wed, 13 Mar 2002 19:07:04 +0000 Subject: [PATCH] simplify the way we find the family of an apr_sockaddr_t git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93914 13f79535-47bb-0310-9956-ffa450edef68 --- server/rfc1413.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/rfc1413.c b/server/rfc1413.c index fd2e99c159..e23c4c7ac6 100644 --- a/server/rfc1413.c +++ b/server/rfc1413.c @@ -129,7 +129,7 @@ static apr_status_t rfc1413_connect(apr_socket_t **newsock, conn_rec *conn, } if ((rv = apr_sockaddr_info_get(&destsa, conn->remote_ip, - localsa->sa.sin.sin_family, /* has to match */ + localsa->family, /* has to match */ RFC1413_PORT, 0, conn->pool)) != APR_SUCCESS) { /* This should not fail since we have a numeric address string * as the host. */ @@ -140,7 +140,7 @@ static apr_status_t rfc1413_connect(apr_socket_t **newsock, conn_rec *conn, } if ((rv = apr_socket_create(newsock, - localsa->sa.sin.sin_family, /* has to match */ + localsa->family, /* has to match */ SOCK_STREAM, conn->pool)) != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_CRIT, rv, srv, "rfc1413: error creating query socket"); -- 2.40.0