From: Martin Willi Date: Thu, 11 Apr 2013 17:51:45 +0000 (+0200) Subject: host: print %#H format specifiers not as %any, but with the port X-Git-Tag: 5.1.0dr1~153^2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7749eb0d2a86d1027c801d7f6d82d281e89825a2;p=thirdparty%2Fstrongswan.git host: print %#H format specifiers not as %any, but with the port --- diff --git a/src/libstrongswan/networking/host.c b/src/libstrongswan/networking/host.c index 268d9b18ef..65e1b7791c 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" : "");