aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-04-11 19:51:45 +0200
committerMartin Willi <martin@revosec.ch>2013-05-06 16:10:11 +0200
commit7749eb0d2a86d1027c801d7f6d82d281e89825a2 (patch)
tree98ce23c92c87a230824cb9a70963c84ce7a1ba1f /src
parent344a4e54be887bb0ce8e32b5dbc29386a00d3887 (diff)
downloadstrongswan-7749eb0d2a86d1027c801d7f6d82d281e89825a2.tar.bz2
strongswan-7749eb0d2a86d1027c801d7f6d82d281e89825a2.tar.xz
host: print %#H format specifiers not as %any, but with the port
Diffstat (limited to 'src')
-rw-r--r--src/libstrongswan/networking/host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/networking/host.c b/src/libstrongswan/networking/host.c
index 268d9b18e..65e1b7791 100644
--- a/src/libstrongswan/networking/host.c
+++ b/src/libstrongswan/networking/host.c
@@ -111,7 +111,7 @@ int host_printf_hook(printf_hook_data_t *data, printf_hook_spec_t *spec,
{
snprintf(buffer, sizeof(buffer), "(null)");
}
- else if (is_anyaddr(this) && !spec->plus)
+ else if (is_anyaddr(this) && !spec->plus && !spec->hash)
{
snprintf(buffer, sizeof(buffer), "%%any%s",
this->address.sa_family == AF_INET6 ? "6" : "");