httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/network_io/unix sockaddr.c
Date Thu, 16 Nov 2000 03:04:54 GMT
trawick     00/11/15 19:04:54

  Modified:    src/lib/apr/network_io/unix sockaddr.c
  Log:
  fix bug in get_local_addr(): wrong address passed to getsockname()
  
  Revision  Changes    Path
  1.21      +1 -1      apache-2.0/src/lib/apr/network_io/unix/sockaddr.c
  
  Index: sockaddr.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/network_io/unix/sockaddr.c,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- sockaddr.c	2000/11/16 01:51:35	1.20
  +++ sockaddr.c	2000/11/16 03:04:54	1.21
  @@ -59,7 +59,7 @@
   {
       apr_socklen_t namelen = sizeof(*sock->local_addr);
   
  -    if (getsockname(sock->socketdes, (struct sockaddr *)sock->local_addr, 
  +    if (getsockname(sock->socketdes, (struct sockaddr *)&sock->local_addr->sa,
                       &namelen) < 0) {
           return errno;
       }
  
  
  

Mime
View raw message