apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: apr/network_io/unix sockaddr.c
Date Fri, 15 Aug 2003 02:21:55 GMT
jerenkrantz    2003/08/14 19:21:55

  Modified:    network_io/unix sockaddr.c
  Log:
  Set the hostnames on all apr_sockaddr_t's returned.
  Since we're at the same lifetime as the prev_sa, it's safe to just point
  to that one as well.
  
  Revision  Changes    Path
  1.42      +2 -0      apr/network_io/unix/sockaddr.c
  
  Index: sockaddr.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/unix/sockaddr.c,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -u -r1.41 -r1.42
  --- sockaddr.c	14 Aug 2003 17:36:17 -0000	1.41
  +++ sockaddr.c	15 Aug 2003 02:21:55 -0000	1.42
  @@ -437,6 +437,7 @@
               *sa = new_sa;
           }
           else {
  +            new_sa->hostname = prev_sa->hostname;
               prev_sa->next = new_sa;
           }
   
  @@ -569,6 +570,7 @@
               *sa = new_sa;
           }
           else {
  +            new_sa->hostname = prev_sa->hostname;
               prev_sa->next = new_sa;
           }
   
  
  
  

Mime
View raw message