diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-09-28 18:49:16 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-09-28 18:49:16 +0200 |
commit | 027324587767220b4ba2c054a38120e4eedff3d9 (patch) | |
tree | 368eaa2d649b55f84805bd8c42ee8a51fe9a8714 /src/libcharon/plugins/tnc_ifmap | |
parent | 1b1d1d938f7aad48cc0b5cdbc59b432ae3c9c018 (diff) | |
download | strongswan-027324587767220b4ba2c054a38120e4eedff3d9.tar.bz2 strongswan-027324587767220b4ba2c054a38120e4eedff3d9.tar.xz |
Fixed snprintf check in tnc-ifmap plugin
Diffstat (limited to 'src/libcharon/plugins/tnc_ifmap')
-rw-r--r-- | src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c b/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c index f53552987..b13193612 100644 --- a/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c +++ b/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c @@ -296,7 +296,7 @@ static axiom_node_t* create_ip_address(private_tnc_ifmap_soap_t *this, { written = snprintf(pos, len, "%s%x", first ? "" : ":", 256*address.ptr[i] + address.ptr[i+1]); - if (written < 0 || written > len) + if (written < 0 || written >= len) { break; } |