]> granicus.if.org Git - apache/commitdiff
Fix the call to apr_snprintf() for formatting the sockaddr in
authorJeff Trawick <trawick@apache.org>
Sat, 16 Dec 2000 02:26:08 +0000 (02:26 +0000)
committerJeff Trawick <trawick@apache.org>
Sat, 16 Dec 2000 02:26:08 +0000 (02:26 +0000)
a vhost entry when dumping the vhost config.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87365 13f79535-47bb-0310-9956-ffa450edef68

server/vhost.c

index f0372d235b40a0e9a4691ff8bc751f670e14b0ed..bb7675f54c491b44c78e9b8aa9bf685a2dd50fb8 100644 (file)
@@ -420,8 +420,7 @@ static void dump_a_vhost(apr_file_t *f, ipaddr_chain *ic)
                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] = '*';