You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2003/02/16 11:10:20 UTC

cvs commit: apr/network_io/unix sockaddr.c

wrowe       2003/02/16 02:10:20

  Modified:    network_io/unix sockaddr.c
  Log:
    Just an interesting observation to Win32 IPV6 hackers.
  
  Revision  Changes    Path
  1.37      +3 -0      apr/network_io/unix/sockaddr.c
  
  Index: sockaddr.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/unix/sockaddr.c,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- sockaddr.c	10 Jan 2003 15:09:00 -0000	1.36
  +++ sockaddr.c	16 Feb 2003 10:10:20 -0000	1.37
  @@ -928,6 +928,9 @@
   APR_DECLARE(int) apr_ipsubnet_test(apr_ipsubnet_t *ipsub, apr_sockaddr_t *sa)
   {
   #if APR_HAVE_IPV6
  +    /* XXX This line will segv on Win32 build with APR_HAVE_IPV6,
  +     * but without the IPV6 drivers installed.
  +     */
       if (sa->sa.sin.sin_family == AF_INET) {
           if (ipsub->family == AF_INET &&
               ((sa->sa.sin.sin_addr.s_addr & ipsub->mask[0]) == ipsub->sub[0])) {