You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2002/03/13 20:07:04 UTC
cvs commit: httpd-2.0/server rfc1413.c
trawick 02/03/13 11:07:04
Modified: server rfc1413.c
Log:
simplify the way we find the family of an apr_sockaddr_t
Revision Changes Path
1.44 +2 -2 httpd-2.0/server/rfc1413.c
Index: rfc1413.c
===================================================================
RCS file: /home/cvs/httpd-2.0/server/rfc1413.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- rfc1413.c 22 Oct 2001 13:04:12 -0000 1.43
+++ rfc1413.c 13 Mar 2002 19:07:04 -0000 1.44
@@ -129,7 +129,7 @@
}
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 @@
}
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");