diff options
author | Tobias Brunner <tobias@strongswan.org> | 2017-02-17 12:32:04 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2017-03-02 08:27:30 +0100 |
commit | 2283c8148a2d67357c68256be3811a3059d7ef77 (patch) | |
tree | e085bfadfd1f3f1064d9d1e30d4f42d85cc2d5e7 /src/libstrongswan/networking/host.c | |
parent | d8e12fdb130a3b9413260ef74f646b3b243c6e1e (diff) | |
download | strongswan-2283c8148a2d67357c68256be3811a3059d7ef77.tar.bz2 strongswan-2283c8148a2d67357c68256be3811a3059d7ef77.tar.xz |
host: Don't log port if it is zero
Diffstat (limited to 'src/libstrongswan/networking/host.c')
-rw-r--r-- | src/libstrongswan/networking/host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/networking/host.c b/src/libstrongswan/networking/host.c index b71d2da16..953720498 100644 --- a/src/libstrongswan/networking/host.c +++ b/src/libstrongswan/networking/host.c @@ -139,7 +139,7 @@ int host_printf_hook(printf_hook_data_t *data, printf_hook_spec_t *spec, snprintf(buffer, sizeof(buffer), "(address conversion failed)"); } - else if (spec->hash) + else if (spec->hash && port) { len = strlen(buffer); snprintf(buffer + len, sizeof(buffer) - len, |