From: Jeff Trawick Date: Wed, 13 Mar 2002 19:07:04 +0000 (+0000) Subject: simplify the way we find the family of an apr_sockaddr_t X-Git-Tag: CHANGES~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff76c936221a0fd68a1996c10f0d1fe182128047;p=apache 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 --- 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");