diff options
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 |
commit | ca3d12bf81c4b0424d977c06092db9e6f1fb0528 (patch) | |
tree | 28dc095e4eaac352a53b6d29afc13d3e899f0d0b | |
parent | 3b8af061583bd7cc4fbc3f2a615586befe74cdb9 (diff) | |
download | conntrack-tools-ca3d12bf81c4b0424d977c06092db9e6f1fb0528.tar.gz conntrack-tools-ca3d12bf81c4b0424d977c06092db9e6f1fb0528.zip |
fix silly bug in build_network_message: out of bound memset
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/network.c | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -3,6 +3,10 @@ version 0.9.4 (yet unreleased) = conntrackd = o simplify checksum code: use UDP/multicast checksum facilities +o fix silly bug in build_network_message: out of bound memset + += conntrack = +o fix segfault with conntrack --output (Krzysztof Oledzky) version 0.9.3 (2006/05/22) ------------------------------ 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); } |