diff options
author | Tobias Brunner <tobias@strongswan.org> | 2016-03-11 10:06:58 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2016-03-11 10:09:02 +0100 |
commit | 0fc8b1d03e908e1b01def221e12e228f673f1430 (patch) | |
tree | 1e0d973645ce48c89566ce8354176643b2d737fc /src | |
parent | 20df9d315c80d95a5a268a5675c48075d5c0394c (diff) | |
download | strongswan-0fc8b1d03e908e1b01def221e12e228f673f1430.tar.bz2 strongswan-0fc8b1d03e908e1b01def221e12e228f673f1430.tar.xz |
identification: Make `written` signed to fix error checking when printing ranges
Diffstat (limited to 'src')
-rw-r--r-- | src/libstrongswan/utils/identification.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstrongswan/utils/identification.c b/src/libstrongswan/utils/identification.c index 98424586f..2b2e907f0 100644 --- a/src/libstrongswan/utils/identification.c +++ b/src/libstrongswan/utils/identification.c @@ -980,9 +980,9 @@ int identification_printf_hook(printf_hook_data_t *data, { private_identification_t *this = *((private_identification_t**)(args[0])); chunk_t proper; - char buf[BUF_LEN]; - char *pos; - size_t written, len, address_size; + char buf[BUF_LEN], *pos; + size_t len, address_size; + int written; if (this == NULL) { |