diff options
author | Jeff Trawick <trawick@apache.org> | 2000-12-16 03:26:08 +0100 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2000-12-16 03:26:08 +0100 |
commit | 7e1800931ccba50c1533b49ba9c3a8a4e85fc6dc (patch) | |
tree | 626f0a8cb671ea93de5a879a1f9b805cc60d6226 | |
parent | apr_get_inaddr() is gone (diff) | |
download | apache2-7e1800931ccba50c1533b49ba9c3a8a4e85fc6dc.tar.xz apache2-7e1800931ccba50c1533b49ba9c3a8a4e85fc6dc.zip |
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
-rw-r--r-- | server/vhost.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/vhost.c b/server/vhost.c index f0372d235b..bb7675f54c 100644 --- a/server/vhost.c +++ b/server/vhost.c @@ -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] = '*'; |