You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@locus.apache.org on 2000/12/16 03:26:08 UTC

cvs commit: httpd-2.0/server vhost.c

trawick     00/12/15 18:26:08

  Modified:    server   vhost.c
  Log:
  Fix the call to apr_snprintf() for formatting the sockaddr in
  a vhost entry when dumping the vhost config.
  
  Revision  Changes    Path
  1.43      +1 -2      httpd-2.0/server/vhost.c
  
  Index: vhost.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/vhost.c,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- vhost.c	2000/12/15 19:20:12	1.42
  +++ vhost.c	2000/12/16 02:26:08	1.43
  @@ -420,8 +420,7 @@
   		ic->sar->host_port);
       }
       else {
  -	len = apr_snprintf(buf, sizeof(buf), "%pA:%u",
  -		ic->sar->host_addr, ic->sar->host_port);
  +	len = apr_snprintf(buf, sizeof(buf), "%pI", ic->sar->host_addr);
       }
       if (ic->sar->host_port == 0) {
   	buf[len-1] = '*';