summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2007-05-30 15:43:15 +0000
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2007-05-30 15:43:15 +0000
commitca3d12bf81c4b0424d977c06092db9e6f1fb0528 (patch)
tree28dc095e4eaac352a53b6d29afc13d3e899f0d0b /src
parent3b8af061583bd7cc4fbc3f2a615586befe74cdb9 (diff)
downloadconntrack-tools-ca3d12bf81c4b0424d977c06092db9e6f1fb0528.tar.gz
conntrack-tools-ca3d12bf81c4b0424d977c06092db9e6f1fb0528.zip
fix silly bug in build_network_message: out of bound memset
Diffstat (limited to 'src')
-rw-r--r--src/network.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network.c b/src/network.c
index d073428..abd30fe 100644
--- a/src/network.c
+++ b/src/network.c
@@ -249,6 +249,7 @@ int build_network_msg(const int msg_type,
{
memset(buffer, 0, size);
buffer += sizeof(struct nlnetwork);
+ size -= sizeof(struct nlnetwork);
return nfct_build_query(ssh, msg_type, ct, buffer, size);
}