apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: apr/network_io/unix sockaddr.c
Date Tue, 13 Jul 2004 09:15:50 GMT
jorton      2004/07/13 02:15:50

  Modified:    network_io/unix sockaddr.c
  Log:
  * network_io/unix/sockaddr.c (apr_getnameinfo): Fix getnameinfo on
  v4mapped addresses for *BSD.
  
  PR: 30066
  Submitted by: Tsurutani Naoki <turutani scphys.kyoto-u.ac.jp>
  
  Revision  Changes    Path
  1.55      +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.54
  retrieving revision 1.55
  diff -d -w -u -r1.54 -r1.55
  --- sockaddr.c	5 Jul 2004 08:35:49 -0000	1.54
  +++ sockaddr.c	13 Jul 2004 09:15:50 -0000	1.55
  @@ -596,6 +596,9 @@
           struct sockaddr_in tmpsa;
           tmpsa.sin_family = AF_INET;
           tmpsa.sin_addr.s_addr = ((apr_uint32_t *)sockaddr->ipaddr_ptr)[3];
  +#ifdef SIN6_LEN
  +        tmpsa.sin_len = sizeof(tmpsa);
  +#endif
   
           rc = getnameinfo((const struct sockaddr *)&tmpsa, sizeof(tmpsa),
                            tmphostname, sizeof(tmphostname), NULL, 0,
  
  
  

Mime
View raw message