aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2016-03-11 10:06:58 +0100
committerTobias Brunner <tobias@strongswan.org>2016-03-11 10:09:02 +0100
commit0fc8b1d03e908e1b01def221e12e228f673f1430 (patch)
tree1e0d973645ce48c89566ce8354176643b2d737fc /src
parent20df9d315c80d95a5a268a5675c48075d5c0394c (diff)
downloadstrongswan-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.c6
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)
{