]> granicus.if.org Git - apache/commitdiff
simplify the way we find the family of an apr_sockaddr_t
authorJeff Trawick <trawick@apache.org>
Wed, 13 Mar 2002 19:07:04 +0000 (19:07 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 13 Mar 2002 19:07:04 +0000 (19:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93914 13f79535-47bb-0310-9956-ffa450edef68

server/rfc1413.c

index fd2e99c159716740aa4796494adb6d87a0a7b4d0..e23c4c7ac672d61b99267e11d891db87378efe6a 100644 (file)
@@ -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");