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:17:14 GMT
jorton      2004/07/13 02:17:14

  Modified:    network_io/unix Tag: APR_0_9_BRANCH sockaddr.c
  Log:
  Backport from HEAD:
  
  * 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
  No                   revision
  No                   revision
  1.43.2.7  +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.43.2.6
  retrieving revision 1.43.2.7
  diff -d -w -u -r1.43.2.6 -r1.43.2.7
  --- sockaddr.c	24 May 2004 11:27:45 -0000	1.43.2.6
  +++ sockaddr.c	13 Jul 2004 09:17:14 -0000	1.43.2.7
  @@ -612,6 +612,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