1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-26 19:01:35 +03:00

Fix the call to apr_snprintf() for formatting the sockaddr in

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
This commit is contained in:
Jeff Trawick
2000-12-16 02:26:08 +00:00
parent 77bbf2317c
commit 7e1800931c

View 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] = '*';